/* =================================================
   YG SAAS — index stylesheet
   1. Tokens
   2. Base
   3. Background
   4. Shared components
   5. Hero
   6. Products
   7. Development services
   8. Philosophy
   9. Footer
   10. Responsive
   11. Reduced motion
================================================= */


/* =================================================
   1. TOKENS
================================================= */

: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;
    --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

    --max-width: 1180px;
    --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);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

h2 {
    letter-spacing: -0.05em;
}

/* Gold highlight inside headings and taglines */
h2 span,
.hero-tagline span,
.development-tagline span {
    color: var(--gold);
}

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


/* =================================================
   3. BACKGROUND
================================================= */

.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
================================================= */

/* ----- 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%;
}

/* ----- Small uppercase labels ----- */

.eyebrow,
.section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.section-label {
    display: block;
    margin-bottom: 14px;
    color: var(--gold);
    letter-spacing: 0.18em;
}

/* ----- Tag list (products + development) ----- */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.tag-list li {
    padding: 7px 10px;

    color: rgba(245, 242, 235, 0.55);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-neutral);
    border-radius: 7px;
}

/* ----- Text link with arrow ----- */

.text-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;

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

    transition: gap var(--ease);
}

.text-link span {
    font-size: 17px;
    transition: transform var(--ease);
}

.text-link:hover {
    gap: 15px;
}

.text-link:hover span {
    transform: translate(2px, -2px);
}


/* =================================================
   5. HERO
================================================= */

.hero {
    min-height: 90vh;
    min-height: 90svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 30px 100px;
}

.hero-inner {
    width: min(900px, 100%);
    text-align: center;
}

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

    color: var(--text-muted);
    letter-spacing: 0.25em;
}

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

.hero-title {
    /* padding keeps the gradient text from being clipped */
    padding: 1rem;

    font-size: clamp(72px, 13vw, 170px);
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: -0.04em;
}

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

.hero-tagline {
    margin-top: 34px;

    font-size: clamp(20px, 3vw, 28px);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.hero-description {
    max-width: 560px;
    margin: 22px auto 0;

    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    margin-top: 38px;
    padding: 13px 19px;

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

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

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

.hero-cta:hover {
    transform: translateY(-3px);
    background: rgba(var(--gold-rgb), 0.08);
    border-color: var(--border-hover);
}


/* =================================================
   6. PRODUCTS
================================================= */

.products {
    width: min(var(--max-width), 92%);
    margin: 0 auto;
    padding: 100px 0 130px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.section-heading h2 {
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.045em;
}

.section-heading > p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: right;
}

.saas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

/* ----- Card ----- */

.saas-card {
    position: relative;
    min-height: 470px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    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;
}

.saas-card::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    top: -160px;
    right: -120px;
    border-radius: 50%;
    background: rgba(var(--gold-rgb), 0.09);
    filter: blur(70px);
    pointer-events: none;
    transition: background 0.5s ease;
}

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

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

.saas-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 44px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;

    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    background: rgba(var(--gold-rgb), 0.055);
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    border-radius: 999px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(216, 189, 118, 0.8);
}

.saas-number {
    color: rgba(255, 255, 255, 0.22);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.saas-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;

    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: 15px;
}

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

.saas-card h3 {
    margin-bottom: 8px;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.045em;
}

.saas-tagline {
    margin-bottom: 15px;
    color: var(--gold);
    font-size: 15px;
}

.saas-description {
    max-width: 480px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.75;
}

.saas-link {
    margin-top: auto;
    padding-top: 30px;
}


/* =================================================
   7. DEVELOPMENT SERVICES
================================================= */

.development {
    width: min(var(--max-width), 92%);
    margin: 0 auto;
    padding: 40px 0 120px;
}

.development-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
    padding: 58px;
    overflow: hidden;

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

.development-content h2 {
    margin-bottom: 24px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.development-tagline {
    margin-bottom: 18px;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
}

.development-description {
    max-width: 500px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.9;
}

.development-tagline,
.development-description {
    text-wrap: pretty;
}

.development-content .tag-list {
    margin-top: 26px;
}

.development-link {
    margin-top: 32px;
    letter-spacing: 0.09em;
}

/* ----- Decorative code card ----- */

.development-visual {
    position: relative;
    min-height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-orbit {
    position: absolute;
    border: 1px solid rgba(216, 189, 118, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.dev-orbit-one {
    width: 300px;
    height: 300px;
}

.dev-orbit-two {
    width: 230px;
    height: 230px;
}

.dev-code-card {
    position: relative;
    z-index: 1;
    width: min(100%, 330px);
    padding: 20px;

    background: rgba(8, 8, 7, 0.88);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.3);

    transform: rotate(-2deg);
    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.development-inner:hover .dev-code-card {
    transform: rotate(0deg) translateY(-4px);
    border-color: var(--border-hover);
}

.dev-card-header,
.dev-card-footer {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 9px;
    letter-spacing: 0.12em;
}

.dev-card-header {
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-weight: 600;
}

.dev-card-footer {
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    letter-spacing: 0.14em;
}

.dev-window-dots {
    display: flex;
    gap: 5px;
}

.dev-window-dots span,
.dev-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dev-window-dots span {
    background: rgba(216, 189, 118, 0.4);
}

.dev-status-dot {
    background: var(--gold);
    box-shadow: 0 0 9px rgba(216, 189, 118, 0.5);
}

.dev-code {
    padding: 24px 0;
    font-family: var(--font-mono);
    font-size: clamp(11px, 1.2vw, 13px);
    line-height: 2;
}

.dev-code p {
    white-space: nowrap;
}

.code-muted {
    color: rgba(245, 242, 235, 0.35);
}

.code-tag {
    color: var(--gold);
}

.code-value {
    color: var(--text-soft);
}

.code-indent {
    padding-left: 18px;
}


/* =================================================
   8. PHILOSOPHY
================================================= */

.philosophy {
    width: min(900px, 92%);
    margin: 0 auto;
    padding: 100px 0 140px;
}

.philosophy h2 {
    max-width: 700px;
    margin-bottom: 30px;
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -0.055em;
}

.philosophy p {
    max-width: 580px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.9;
}

.philosophy p + p {
    margin-top: 1.9em;
}


/* =================================================
   9. FOOTER
================================================= */

.site-footer {
    width: min(var(--max-width), 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;
}

.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);
}

.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);
}


/* =================================================
   10. RESPONSIVE
================================================= */

@media (max-width: 800px) {

    .hero {
        min-height: 82vh;
        min-height: 82svh;
        padding: 110px 20px 80px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .section-heading > p {
        text-align: left;
    }

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

    .development {
        padding: 10px 0 80px;
    }

    .development-inner {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 36px;
    }

    .development-visual {
        min-height: 250px;
    }

    .dev-orbit-one {
        width: 260px;
        height: 260px;
    }

    .dev-orbit-two {
        width: 200px;
        height: 200px;
    }

    .philosophy {
        padding: 70px 0 100px;
    }
}

@media (max-width: 520px) {

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

    .hero {
        min-height: 78vh;
        min-height: 78svh;
    }

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

    .hero-tagline {
        font-size: 19px;
    }

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

    .hero-cta,
    .text-link {
        font-size: 10px;
    }

    .products {
        padding: 70px 0 90px;
    }

    .saas-card {
        min-height: 430px;
        padding: 26px;
        border-radius: 18px;
    }

    .saas-card-top {
        margin-bottom: 34px;
    }

    .saas-icon {
        width: 48px;
        height: 48px;
    }

    .saas-card h3 {
        font-size: 30px;
    }

    .saas-description,
    .development-description {
        font-size: 13px;
    }

    .development-inner {
        gap: 25px;
        padding: 27px 23px;
        border-radius: 18px;
    }

    .development-content h2 {
        font-size: 40px;
    }

    .development-tagline {
        font-size: 16px;
    }

    .development-visual {
        min-height: 220px;
    }

    .dev-orbit-one {
        width: 220px;
        height: 220px;
    }

    .dev-orbit-two {
        width: 170px;
        height: 170px;
    }

    .dev-code-card {
        padding: 17px;
    }

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


/* =================================================
   11. REDUCED MOTION
================================================= */

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

    html {
        scroll-behavior: auto;
    }

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