/* =================================================
   YG SAAS — development page stylesheet
   Uses the same black / white / gold look as style.css
   1. Tokens
   2. Base
   3. Background
   4. Shared components
   5. Header + language switch
   6. Hero
   7. Trust strip
   8. Sections + services
   9. Approach
   10. CTA
   11. Footer
   12. Responsive
   13. Reduced motion
================================================= */


/* =================================================
   1. TOKENS (same values as style.css)
================================================= */

:root {
    --bg: #080807;

    --gold: #d8bd76;
    --gold-light: #ead39a;
    --gold-rgb: 212, 175, 92;

    --text: #f5f2eb;
    --text-soft: rgba(245, 242, 235, 0.62);
    --text-muted: rgba(245, 242, 235, 0.46);

    --border: rgba(var(--gold-rgb), 0.16);
    --border-hover: rgba(var(--gold-rgb), 0.42);
    --border-neutral: rgba(255, 255, 255, 0.08);

    --font-body: "DM Sans", system-ui, sans-serif;
    --font-display: "Manrope", system-ui, sans-serif;

    --radius-lg: 22px;
    --ease: 0.3s ease;
}


/* =================================================
   2. BASE
================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 6px;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
}

h2 {
    font-size: clamp(32px, 4.5vw, 48px);
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.accent {
    color: var(--gold);
}

::selection {
    background: rgba(216, 189, 118, 0.25);
    color: #fff;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =================================================
   3. BACKGROUND (same as index)
================================================= */

.background-grid {
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;

    -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.background-glow {
    position: fixed;
    z-index: -4;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.glow-one {
    width: 420px;
    height: 420px;
    top: -200px;
    right: -100px;
    background: rgba(var(--gold-rgb), 0.08);
}

.glow-two {
    width: 360px;
    height: 360px;
    top: 55%;
    left: -180px;
    background: rgba(var(--gold-rgb), 0.035);
}


/* =================================================
   4. SHARED COMPONENTS
================================================= */

/* ----- Small uppercase label ----- */

.section-label {
    display: block;
    margin-bottom: 16px;

    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ----- Buttons ----- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    border: 1px solid transparent;
    border-radius: 10px;

    transition:
        transform var(--ease),
        background var(--ease),
        border-color var(--ease);
}

.btn span[aria-hidden] {
    font-size: 15px;
}

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

.btn-primary {
    color: #14110a;
    background: linear-gradient(120deg, #c9a95e, #ead39a);
}

.btn-primary:hover {
    background: linear-gradient(120deg, #d8bd76, #f0d998);
}

.btn-secondary {
    color: var(--gold-light);
    background: rgba(var(--gold-rgb), 0.04);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: rgba(var(--gold-rgb), 0.08);
    border-color: var(--border-hover);
}

/* ----- Back to top ----- */

.scroll-top {
    position: fixed;
    top: 24px;
    right: 26px;
    z-index: 100;

    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);
    font-size: 18px;
    background: rgba(8, 8, 7, 0.72);
    border: 1px solid var(--border);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);

    transition:
        opacity var(--ease),
        visibility var(--ease),
        transform var(--ease),
        border-color var(--ease),
        background var(--ease);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top.visible:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    background: rgba(216, 189, 118, 0.08);
}

.scroll-top:focus-visible {
    border-radius: 50%;
}


/* =================================================
   5. HEADER + LANGUAGE SWITCH
================================================= */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.logo span {
    color: var(--gold);
}

.lang-switch {
    display: inline-flex;
    padding: 3px;

    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);

    background: rgba(var(--gold-rgb), 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;

    transition: border-color var(--ease);
}

.lang-switch:hover {
    border-color: var(--border-hover);
}

.lang-switch span {
    padding: 6px 11px;
    border-radius: 999px;
    transition:
        background var(--ease),
        color var(--ease);
}

html[lang="en"] .lang-switch [data-lang="en"],
html[lang="hu"] .lang-switch [data-lang="hu"] {
    color: #14110a;
    background: var(--gold);
}


/* =================================================
   6. HERO
================================================= */

.hero {
    padding: 90px 0 110px;
    text-align: center;
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;

    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.eyebrow-line {
    width: 26px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 28px;

    font-size: clamp(42px, 6.5vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(120deg, #b9974f, #f0d998, #b9974f);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.8;
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}


/* =================================================
   7. TRUST STRIP
================================================= */

.trust-strip {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 38px;

    color: var(--text-soft);
    font-size: 13px;
}

.trust-items li::before {
    content: "✦";
    margin-right: 9px;
    color: var(--gold);
}


/* =================================================
   8. SECTIONS + SERVICES
================================================= */

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 18px;
}

.section-heading p {
    color: var(--text-soft);
    font-size: 15px;
}

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

.service-card {
    position: relative;
    overflow: hidden;
    padding: 32px 28px;

    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    transition:
        transform 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -150px;
    right: -110px;
    border-radius: 50%;
    background: rgba(var(--gold-rgb), 0.08);
    filter: blur(70px);
    pointer-events: none;
    transition: background 0.5s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.service-card:hover::before {
    background: rgba(var(--gold-rgb), 0.15);
}

.service-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;

    background: linear-gradient(145deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.025));
    border: 1px solid rgba(var(--gold-rgb), 0.22);
    border-radius: 14px;
}

.service-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.service-card p {
    color: var(--text-soft);
    font-size: 14px;
}

.service-card ul {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-neutral);
    font-size: 13px;
}

.service-card li {
    margin-top: 6px;
}

.service-card li::before {
    content: "→";
    margin-right: 9px;
    color: var(--gold);
}


/* =================================================
   9. APPROACH
================================================= */

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.approach-copy h2 {
    margin-bottom: 24px;
}

.approach-copy p {
    margin-bottom: 16px;
    color: var(--text-soft);
    font-size: 15px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.tech-stack li {
    padding: 7px 11px;

    color: rgba(245, 242, 235, 0.55);
    font-size: 11px;
    line-height: 1.4;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-neutral);
    border-radius: 7px;
}

.approach-points {
    display: grid;
    gap: 16px;
}

.approach-point {
    display: flex;
    gap: 18px;
    padding: 22px 24px;

    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 16px;

    transition: border-color var(--ease);
}

.approach-point:hover {
    border-color: var(--border-hover);
}

.point-number {
    padding-top: 2px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.approach-point h3 {
    margin-bottom: 6px;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.approach-point p {
    color: var(--text-soft);
    font-size: 13px;
}


/* =================================================
   10. CTA
================================================= */

.cta-section {
    padding: 20px 0 110px;
}

.cta-box {
    padding: 70px 30px;
    text-align: center;

    background: linear-gradient(
        135deg,
        rgba(216, 189, 118, 0.07),
        rgba(255, 255, 255, 0.012) 55%,
        rgba(216, 189, 118, 0.035)
    );
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cta-box h2 {
    margin-bottom: 18px;
}

.cta-box p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 15px;
}

.cta-box .btn {
    margin-top: 32px;
}


/* =================================================
   11. FOOTER
================================================= */

.site-footer {
    width: min(1180px, 92%);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-copy {
    color: var(--text-soft);
    line-height: 1.5;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.footer-link {
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--ease);
}

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


/* =================================================
   12. RESPONSIVE
================================================= */

@media (max-width: 800px) {

    .hero {
        padding: 60px 0 80px;
    }

    .services-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        gap: 40px;
    }

    .section {
        padding: 75px 0;
    }
}

@media (max-width: 520px) {

    .scroll-top {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .site-header {
        padding: 20px 0;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .hero p {
        font-size: 14px;
    }

    .btn {
        font-size: 10px;
    }

    .trust-items {
        justify-content: flex-start;
        gap: 12px 22px;
    }

    .service-card {
        padding: 26px 23px;
        border-radius: 18px;
    }

    .cta-box {
        padding: 48px 22px;
        border-radius: 18px;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        text-align: center;
    }
}


/* =================================================
   13. REDUCED MOTION
================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
