:root {
    color-scheme: light;
    --ink: #18212b;
    --muted: #546274;
    --line: #dce3ea;
    --surface: #f6f8fb;
    --white: #ffffff;
    --brand: #0b756f;
    --brand-dark: #084f57;
    --accent: #a24b36;
    --gold: #d59b36;
    --blue: #245c9c;
}

* {
    box-sizing: border-box;
}

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

a {
    color: var(--brand-dark);
}

.page {
    min-height: 100vh;
    padding: 40px 20px 56px;
}

.home-hero,
.content-section {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 36px;
    min-height: calc(100vh - 96px);
    padding: 16px 0 36px;
}

.hero-copy {
    text-align: left;
}

.hero-copy .lead {
    margin-left: 0;
}

.hero-copy .actions {
    justify-content: flex-start;
}

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

.brand-logo {
    display: block;
    width: min(500px, 100%);
    height: auto;
    margin: 0 0 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(2.2rem, 4.2vw, 4rem);
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    line-height: 1.18;
    letter-spacing: 0;
}

p {
    margin: 0;
}

.lead {
    max-width: 640px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 1.16rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.button.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.button.secondary {
    background: var(--white);
}

.hero-showcase {
    position: relative;
    min-height: 450px;
}

.showcase-screen {
    position: absolute;
    display: grid;
    align-content: end;
    width: min(320px, 75vw);
    min-height: 380px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(24, 33, 43, 0.08);
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    font: inherit;
    text-align: left;
    box-shadow: 0 24px 70px rgba(24, 33, 43, 0.18);
    transition: transform 220ms ease, box-shadow 220ms ease, z-index 0ms 110ms;
}

.showcase-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.18), transparent 34%),
        radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.22), transparent 18%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
}

.showcase-screen span,
.showcase-screen strong {
    position: relative;
}

.showcase-screen span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.showcase-screen strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.45rem, 2.8vw, 2.15rem);
    line-height: 1.08;
}

.showcase-screen:hover,
.showcase-screen:focus-visible {
    transform: translateY(-8px);
}

.showcase-screen:focus-visible {
    outline: 3px solid rgba(11, 117, 111, 0.35);
    outline-offset: 4px;
}

.showcase-screen.is-active {
    z-index: 3;
    transform: translateY(-14px) scale(1.03);
    box-shadow: 0 32px 90px rgba(24, 33, 43, 0.24);
}

.primary-screen {
    right: 96px;
    top: 24px;
    z-index: 1;
    background: linear-gradient(145deg, #0b756f, #245c9c);
}

.secondary-screen {
    right: 0;
    bottom: 8px;
    min-height: 280px;
    z-index: 2;
    background: linear-gradient(145deg, #a24b36, #d59b36);
}

.content-section {
    padding: 68px 0;
    border-top: 1px solid var(--line);
}

.services-section {
    position: relative;
    border-top: 0;
    isolation: isolate;
}

.services-section::before {
    content: "";
    position: absolute;
    inset: 0 -100vw;
    z-index: -1;
    background:
        linear-gradient(120deg, rgba(11, 117, 111, 0.1), rgba(36, 92, 156, 0.12) 44%, rgba(255, 255, 255, 0) 74%),
        linear-gradient(rgba(24, 33, 43, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 33, 43, 0.045) 1px, transparent 1px),
        var(--surface);
    background-size: auto, 42px 42px, 42px 42px, auto;
    box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.service-carousel {
    overflow: hidden;
    padding: 22px 0 36px;
}

.service-slider {
    display: flex;
    gap: 16px;
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.service-slider.is-resetting {
    transition: none;
}

.service-slider.is-resetting .service-slide {
    transition: none;
}

.service-slide {
    position: relative;
    flex: 0 0 min(320px, 32%);
    display: grid;
    align-content: end;
    min-height: 280px;
    padding: 24px;
    overflow: hidden;
    border-radius: 8px;
    color: var(--white);
    opacity: 0.72;
    transform: scale(0.9);
    transition: opacity 320ms ease, transform 320ms ease, box-shadow 320ms ease;
}

.service-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%),
        radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 16%);
}

.service-slide h3 {
    position: relative;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.service-slide h3 {
    margin-top: 12px;
    font-size: 1.65rem;
}

.service-slide.is-active {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 22px 54px rgba(24, 33, 43, 0.22);
    z-index: 2;
}

.mobile-slide {
    background:
        linear-gradient(180deg, rgba(3, 18, 32, 0.08) 0%, rgba(3, 18, 32, 0.7) 100%),
        url("../images/service-mobile-app-development.png") center / cover;
}

.web-slide {
    background:
        linear-gradient(180deg, rgba(3, 18, 32, 0.04) 0%, rgba(3, 18, 32, 0.72) 100%),
        url("../images/service-web-application-development.png") center / cover;
}

.design-slide {
    background:
        linear-gradient(180deg, rgba(3, 18, 32, 0.05) 0%, rgba(3, 18, 32, 0.72) 100%),
        url("../images/service-ui-ux-design.png") center / cover;
}

.backend-slide {
    background:
        linear-gradient(180deg, rgba(3, 18, 32, 0.04) 0%, rgba(3, 18, 32, 0.74) 100%),
        url("../images/service-backend-api-development.png") center / cover;
}

.ecommerce-slide {
    background:
        linear-gradient(180deg, rgba(3, 18, 32, 0.04) 0%, rgba(3, 18, 32, 0.72) 100%),
        url("../images/service-ecommerce-development.png") center / cover;
}

.support-slide {
    background:
        linear-gradient(180deg, rgba(3, 18, 32, 0.04) 0%, rgba(3, 18, 32, 0.74) 100%),
        url("../images/service-maintenance-support.png") center / cover;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
    gap: 42px;
    align-items: start;
}

.split-section p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 1.06rem;
}

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

.feature-item,
.process-grid article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.feature-item {
    padding: 18px;
    color: var(--ink);
    font-weight: 750;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.process-grid article {
    padding: 22px;
}

.process-grid span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    font-weight: 800;
}

.process-grid h3 {
    font-size: 1.12rem;
}

.process-grid p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.96rem;
}

.industry-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.industry-list span {
    padding: 10px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 700;
}

.cta-section {
    display: grid;
    justify-items: start;
    gap: 18px;
    padding-bottom: 16px;
}

.cta-section p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.site-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 22px 0;
    border-top: 0;
    color: var(--muted);
    font-size: 0.95rem;
    isolation: isolate;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 -100vw;
    z-index: -1;
    background:
        linear-gradient(120deg, rgba(11, 117, 111, 0.1), rgba(36, 92, 156, 0.12) 44%, rgba(255, 255, 255, 0) 74%),
        linear-gradient(rgba(24, 33, 43, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 33, 43, 0.045) 1px, transparent 1px),
        var(--surface);
    background-size: auto, 42px 42px, 42px 42px, auto;
    box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line);
}

.social-label {
    margin-right: 8px;
    color: #3e5574;
    font-weight: 700;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.social-links svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--brand);
    transform: translateY(-2px);
}

.contact-panel {
    width: min(680px, 100%);
    text-align: center;
}

.brand-link {
    display: inline-flex;
    margin-bottom: 28px;
}

.contact-logo {
    width: min(420px, 82vw);
    height: auto;
}

.contact-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.contact-address {
    margin: 24px auto 0;
    color: var(--ink);
    font-style: normal;
    line-height: 1.7;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.admin-page {
    align-items: start;
}

.admin-panel {
    width: min(760px, 100%);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hit-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hit-table caption {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

.hit-table th,
.hit-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.hit-table tr:last-child td {
    border-bottom: 0;
}

.hit-table th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hit-count {
    width: 120px;
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 800;
}

.daily-hit-section {
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.daily-hit-header {
    margin-bottom: 18px;
}

.admin-subtitle {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.hit-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(150px, 0.8fr)) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 22px;
}

.hit-filter-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hit-filter-form select,
.hit-filter-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.daily-hit-table {
    margin-top: 8px;
}

.admin-auth-page {
    align-items: start;
}

.auth-panel {
    width: min(420px, 100%);
}

.wide-auth-panel {
    width: min(620px, 100%);
}

.auth-title {
    margin: 0 0 24px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.auth-form {
    display: grid;
    gap: 12px;
}

.auth-form label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
}

.auth-error {
    margin: 0 0 16px;
    color: #9f1239;
    font-weight: 700;
}

.auth-message {
    margin: 0 0 16px;
    color: var(--brand-dark);
    font-weight: 700;
}

.setup-secret {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.qr-code {
    width: 220px;
    height: 220px;
    justify-self: center;
    margin-bottom: 6px;
    border: 8px solid white;
}

.setup-secret span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.setup-secret strong {
    overflow-wrap: anywhere;
    font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 1rem;
}

.settings-form {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.settings-form h2 {
    margin: 0;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .home-hero,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero-showcase {
        min-height: 380px;
    }

    .primary-screen {
        left: 0;
        right: auto;
        top: 0;
    }

    .secondary-screen {
        right: 0;
        bottom: 0;
    }

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

@media (max-width: 640px) {
    .page {
        padding: 28px 18px 44px;
    }

    .home-hero {
        min-height: auto;
        padding-top: 8px;
    }

    .hero-showcase {
        display: grid;
        gap: 12px;
        min-height: auto;
    }

    .showcase-screen,
    .secondary-screen {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 220px;
        transform: none;
    }

    .secondary-screen {
        min-height: 190px;
    }

    .showcase-screen:hover,
    .showcase-screen:focus-visible,
    .showcase-screen.is-active {
        transform: translateY(-6px);
    }

    .brand-logo {
        width: min(520px, 94vw);
        margin-bottom: 22px;
    }

    .lead {
        font-size: 1rem;
    }

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

    .button {
        width: 100%;
    }

    .service-slide {
        flex-basis: 78%;
        min-height: 230px;
    }

    .feature-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .contact-logo {
        width: min(360px, 88vw);
    }

    .hit-table th,
    .hit-table td {
        padding: 13px 12px;
    }

    .hit-table a {
        overflow-wrap: anywhere;
    }

    .hit-count {
        width: 76px;
        font-size: 1.2rem;
    }

    .hit-filter-form {
        grid-template-columns: 1fr;
    }

    .site-footer {
        justify-content: flex-start;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-actions {
        flex-wrap: wrap;
    }
}
