/* =========================================================
   sysploy — single page styles
   ========================================================= */

@font-face {
    font-family: 'ABCCamera';
    src: url('assets/font/ABCCamera-Medium.woff2') format('woff2'),
         url('assets/font/ABCCamera-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #636fff;
    --color-primary-light: #94afff;
    --color-secondary: #b5fdae;
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-text-muted: #4a4a4a;
    --color-border: #ececec;
    --color-surface: #fafafa;

    --font-display: 'ABCCamera', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;

    --max-width: 1200px;
    --header-height: 64px;

    --radius: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(99, 111, 255, 0.12);
}

/* ---------- Reset / base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 150ms ease;
}
a:hover { color: var(--color-text); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }

p { margin: 0 0 1em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, background 200ms ease;
}
.site-header.scrolled {
    border-bottom-color: var(--color-border);
    background: rgba(255, 255, 255, 0.92);
}

.header-inner {
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0.75rem 0;
}
.header-logo img {
    display: block;
    height: 100%;
    width: auto;
    max-height: 36px;
}

/* ---------- Nav ---------- */

.nav { display: flex; align-items: center; }

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0.2rem;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 110;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 5px auto;
    transition: transform 200ms ease, opacity 150ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(92vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 6rem;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 111, 255, 0.12), transparent 60%),
        radial-gradient(circle at 80% 60%, rgba(181, 253, 174, 0.18), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
}

.hero-content {
    text-align: center;
    max-width: 760px;
}

.hero-logo {
    width: clamp(220px, 38vw, 380px);
    margin: 0 auto 2.5rem;
}

.hero-slogan {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, 5.2vw, 3.75rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--color-text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

/* ---------- Sections ---------- */

section { padding: 6rem 0; }

.section-header {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}
.section-header .lead {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* ---------- Services overview ---------- */

.services { background: var(--color-surface); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}
.service-card h3 { margin-top: 0; }
.service-card p {
    color: var(--color-text-muted);
    flex-grow: 1;
}

.card-link {
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
    margin-top: 0.5rem;
}
.card-link:hover { color: var(--color-primary); }

.cta-row {
    text-align: center;
    margin-top: 1rem;
}
.cta-note {
    margin: 1.25rem auto 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 540px;
}

.cta-button {
    font-family: var(--font-display);
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff;
    padding: 1.1rem 2.6rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 24px rgba(99, 111, 255, 0.3);
    transition: transform 150ms ease, box-shadow 200ms ease, background 200ms ease;
}
.cta-button:hover {
    background: #4f5cff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 111, 255, 0.4);
}

/* ---------- Detail blocks ---------- */

.details { background: #ffffff; }

.detail-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}
.detail-block:last-child { margin-bottom: 0; }
.detail-block-reverse .detail-image { order: 2; }

.detail-image .service-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.detail-text h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 1rem;
}

.detail-text p { color: var(--color-text-muted); }
.detail-text p.paragraph-lead { color: var(--color-text); font-weight: 500; margin-bottom: 0.75rem; }

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}
.bullet-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.85rem;
    color: var(--color-text-muted);
}
.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--color-secondary);
    border-radius: 2px;
    transform: rotate(45deg);
}
.bullet-list li strong { color: var(--color-text); font-weight: 600; }

/* ---------- About section ---------- */

.about {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
    padding: 5rem 0;
}
.about-inner {
    max-width: 760px;
    text-align: center;
}
.about-inner h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
.about-inner p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0;
}
.about-inner .cta-button {
    margin-top: 2rem;
}

/* ---------- Inline placeholder text (footer) ---------- */

.placeholder-inline {
    color: var(--color-primary);
    font-style: italic;
    font-size: 0.85em;
}

/* ---------- Footer ---------- */

.site-footer {
    background: #0a0a14;
    color: #d6d6e0;
    padding: 4rem 0 0;
    margin-top: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand img {
    margin-bottom: 1rem;
}
.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0;
}

.site-footer h4 {
    color: var(--color-primary-light);
    margin-bottom: 0.75rem;
}
.site-footer a {
    color: #ffffff;
    border-bottom: 1px solid transparent;
    transition: border-color 150ms ease, color 150ms ease;
}
.site-footer a:hover {
    color: var(--color-primary-light);
    border-bottom-color: var(--color-primary-light);
}
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .placeholder-inline { color: var(--color-primary-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    color: #8a8aa0;
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .detail-block {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }
    .detail-block-reverse .detail-image { order: 0; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section { padding: 4.5rem 0; }
}

@media (max-width: 640px) {
    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        inset: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 200ms ease, transform 200ms ease;
    }
    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-links a {
        font-family: var(--font-display);
        font-size: 1.5rem;
    }

    .hero { min-height: 80vh; padding: 3rem 1.25rem 4rem; }
    .hero-logo { margin-bottom: 2rem; }

    .service-grid { gap: 1rem; }
    .service-card { padding: 1.5rem 1.25rem; }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}
