:root {
    --white: #ffffff;
    --orange: #ff6b00;
    --orange-dark: #db5500;
    --ink: #111827;
    --muted: #5f6878;
    --line: #e8edf4;
    --soft: #f6f8fb;
    --mono: "IBM Plex Mono", monospace;
    --thai: "Prompt", sans-serif;
    --shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--thai);
    color: var(--ink);
    background:
        radial-gradient(circle at 85% 8%, rgba(255, 107, 0, 0.12), transparent 28rem),
        linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px),
        var(--white);
    background-size: auto, 56px 56px, 56px 56px, auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(232, 237, 244, 0.8);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
}

.nav {
    width: min(1180px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
}

.brand-logo {
    display: block;
    width: clamp(250px, 32vw, 410px);
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.mono,
.eyebrow,
.nav-links a,
.button,
.stat span,
.service-icon,
.tech-cloud span {
    font-family: var(--mono);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-cta {
    color: var(--white) !important;
    background: var(--ink);
    padding: 12px 16px;
    border-radius: 8px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.section,
.hero {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 104px 0;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 64px;
}

.hero {
    position: relative;
    min-height: calc(100vh - 76px);
    padding: 72px 0 44px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero::before {
    width: 180px;
    height: 180px;
    right: 36%;
    top: 18%;
    border: 1px solid rgba(255, 107, 0, 0.28);
    border-radius: 50%;
}

.hero::after {
    width: 180px;
    height: 1px;
    left: 0;
    bottom: 16%;
    background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 18px);
    transform: rotate(-15deg);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.06;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.14;
}

h3 {
    font-size: 22px;
    line-height: 1.35;
}

.hero-description,
.about-copy p,
.contact-copy p {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
    color: var(--white);
    background: var(--orange);
    box-shadow: 0 18px 36px rgba(255, 107, 0, 0.24);
}

.button.primary:hover {
    background: var(--orange-dark);
}

.button.secondary {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.8);
}

.hero-visual {
    position: relative;
    min-height: 570px;
}

.workspace-photo {
    position: absolute;
    inset: 24px 0 52px 34px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background:
        linear-gradient(120deg, rgba(255, 107, 0, 0.15), rgba(255, 255, 255, 0.05)),
        url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1200&q=85") center / cover;
}

.workspace-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 24%, rgba(255, 107, 0, 0.28), transparent 16rem),
        linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.24));
}

.glass {
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 52px rgba(17, 24, 39, 0.14);
}

.code-panel {
    position: absolute;
    left: 0;
    bottom: 12px;
    width: min(440px, 88%);
    border-radius: 8px;
    padding: 18px;
}

.panel-dots {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
}

.panel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--orange);
}

pre {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-wrap;
}

.dashboard-card {
    position: absolute;
    right: 20px;
    top: 46px;
    width: 188px;
    border-radius: 8px;
    padding: 18px;
}

.dashboard-card span,
.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.dashboard-card strong {
    font-family: var(--mono);
    font-size: 34px;
}

.mini-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    align-items: end;
    height: 56px;
    margin-top: 12px;
}

.mini-bars i {
    border-radius: 999px 999px 0 0;
    background: var(--orange);
}

.mini-bars i:nth-child(1) { height: 42%; }
.mini-bars i:nth-child(2) { height: 70%; }
.mini-bars i:nth-child(3) { height: 52%; }
.mini-bars i:nth-child(4) { height: 88%; }
.mini-bars i:nth-child(5) { height: 64%; }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--orange);
    color: var(--white);
}

.stat {
    min-height: 132px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px 18px;
}

.stat strong {
    display: block;
    font-family: var(--mono);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

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

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 360px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 107, 0, 0.22) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.26;
    pointer-events: none;
}

.service-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 34px;
    border-radius: 8px;
    color: var(--white);
    background: var(--ink);
    font-weight: 700;
}

.service-card h3,
.service-card ul {
    position: relative;
}

.service-card ul {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.service-card li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 10px;
    background: var(--orange);
    border-radius: 50%;
    vertical-align: 1px;
}

.process {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-line {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.05);
}

.process-step {
    min-height: 210px;
    padding: 28px;
    border-right: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08), transparent 42%);
}

.process-step:last-child {
    border-right: 0;
}

.process-step span {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 44px;
    border-radius: 50%;
    color: var(--white);
    background: var(--orange);
    font-family: var(--mono);
    font-weight: 700;
}

.process-step h3 {
    margin: 0;
    font-size: 20px;
}

.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tech-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 18px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
    font-weight: 700;
}

.about {
    align-items: stretch;
}

.about-panel {
    position: relative;
    min-height: 430px;
    border-radius: 8px;
    background: var(--ink);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 107, 0, 0.42), transparent 18rem),
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.12) 49%, rgba(255, 255, 255, 0.12) 51%, transparent 52%),
        radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: auto, 42px 42px, 18px 18px;
}

.metric-card {
    position: absolute;
    left: 34px;
    right: 34px;
    border-radius: 8px;
    padding: 24px;
}

.metric-card:first-of-type {
    top: 42px;
}

.metric-card:last-of-type {
    bottom: 42px;
}

.metric-card strong {
    display: block;
    font-size: 22px;
}

.contact {
    width: 100%;
    margin: 0;
    padding-left: max(20px, calc((100% - 1180px) / 2));
    padding-right: max(20px, calc((100% - 1180px) / 2));
    background: var(--soft);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 52px;
    align-items: start;
}

.email-link {
    display: inline-flex;
    margin-top: 22px;
    color: var(--orange);
    font-family: var(--mono);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 14px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.12);
}

.full {
    grid-column: 1 / -1;
}

.form-status {
    grid-column: 1 / -1;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 600;
}

.form-status.success {
    color: #0d5d35;
    background: #e9f8ef;
}

.form-status.warning {
    color: #8a3b00;
    background: #fff0e4;
}

.footer {
    width: min(1180px, calc(100% - 40px));
    min-height: 110px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
}

.footer strong {
    display: block;
    color: var(--ink);
}

.footer a {
    font-family: var(--mono);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .section-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        min-height: 520px;
    }

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

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

    .process-step {
        min-height: 150px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .process-step:last-child {
        border-bottom: 0;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 90px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 10px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px;
    }

    .section,
    .hero,
    .footer {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        padding-top: 46px;
    }

    h1 {
        font-size: 40px;
    }

    .hero-description,
    .about-copy p,
    .contact-copy p {
        font-size: 16px;
    }

    .hero-visual {
        min-height: 430px;
    }

    .workspace-photo {
        inset: 0 0 74px 0;
    }

    .code-panel {
        width: 94%;
    }

    .dashboard-card {
        width: 154px;
        right: 12px;
        top: 16px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact {
        padding-left: 14px;
        padding-right: 14px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        width: 212px;
        height: 44px;
    }

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

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .contact-form {
        padding: 18px;
    }
}
