:root {
    --bg: #ffffff;
    --card: #ffffff;
    --ink: #0b1220;
    --muted: #4b5563;
    --line: #e5e7eb;

    /* Calm, professional accent */
    --accent: #355faf;
    --accent-weak: rgba(37, 99, 235, .10);

    /* Lighter shadow */
    --shadow: 0 6px 20px rgba(2, 6, 23, .06);

    /* Tighter radii */
    --r-xl: 3px;
    --r-2xl: 6px;

    --max: 1120px;

    /* Spacing + rhythm */
    --gutter: 40px;
    --section-pad: clamp(56px, 6vw, 92px);
    --hero-pad: clamp(72px, 7vw, 112px);
    --card-pad: 22px;
    --card-pad-lg: 28px;
    --grid-gap: 22px;

    /* Typography */
    --lh: 1.65;
    --measure: 65ch;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: "Google Sans Flex", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: var(--lh);
    letter-spacing: -0.005em;
    color: var(--ink);
    background: var(--bg);
    background-image:
            radial-gradient(circle at 20% 10%, rgba(37, 99, 235, .06), transparent 40%),
            radial-gradient(circle at 80% 0%, rgba(37, 99, 235, .04), transparent 35%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

.container {
    width: min(var(--max), calc(100% - var(--gutter)));
    margin: 0 auto;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 6px 0;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.logo {
    width: auto;
    display: block;
}

.mark {
    width: 36px;
    height: 36px;
    border-radius: var(--r-xl);
    background: var(--accent-weak);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    user-select: none;
}

.brand-title {
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1.05;
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav a {
    font-size: 14px;
    color: var(--muted);
    font-weight: 650;
}

nav a:hover { color: var(--ink); }

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--r-xl);
    background: var(--accent);
    color: #fff;
    font-weight: 750;
    font-size: 14px;
    box-shadow: var(--shadow);
    border: 0;
}

.cta:hover { opacity: .95; }

/* Responsive nav / hamburger (additive) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    display: block;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* Turn burger into X when open */
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-open .menu-icon::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
}

.mobile-menu nav {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu a {
    padding: 10px 12px;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 650;
    color: var(--ink);
}

.mobile-menu a:hover { opacity: .95; }

.mobile-menu .mobile-cta {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow);
}

@media (max-width: 720px) {
    header nav { display: none; }
    .cta { display: none; }
    .menu-btn { display: inline-flex; }
}

/* Main */
main { padding-bottom: 44px; }

.hero {
    position: relative;
    padding: var(--hero-pad) 0 28px;
    overflow: hidden;
}

.gridbg {
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(to right, rgba(15, 23, 42, .045) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(15, 23, 42, .045) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: .25;
}

.blob {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(46px);
    background: rgba(37, 99, 235, .10);
}

.blob.a { top: -140px; left: -140px; }

.blob.b {
    bottom: -160px;
    right: -160px;
    background: rgba(37, 99, 235, .07);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: start;
}

.pill {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
    width: fit-content;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

h1 {
    margin: 14px 0 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 850;
}

.lead {
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
    max-width: var(--measure);
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    height: 44px;
    padding: 0 16px;
    border-radius: var(--r-xl);
    font-weight: 750;
    font-size: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, background-color .12s ease, border-color .12s ease;
}

.btn.primary {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow);
}

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow);
    padding: var(--card-pad);
}

/* Card typographic helpers (used in Hero + About) */
.card-h {
    margin: 0;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.card-sub {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
}

.card-p {
    margin: 10px 0 0;
}

.mini-stack {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.mini {
    background: #f6f7fb;
    border: 1px solid var(--line);
    border-radius: var(--r-2xl);
    padding: 12px;
}

.mini strong {
    display: block;
    font-size: 13px;
}

.mini span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 14px 0;
}

.small-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
}

.small-list strong {
    color: var(--ink);
    font-weight: 650;
}

section { padding: var(--section-pad) 0; }

.section-title {
    text-align: center;
    max-width: var(--measure);
    margin: 0 auto;
}

.kicker {
    color: var(--accent);
    font-weight: 850;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-title h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 2.4vw, 34px);
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    margin-top: 26px;
}

.service h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -.02em;
}

.service p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.service ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.service li { margin: 8px 0; }

.service-icon {
    width: 42px;
    height: 42px;
    color: var(--accent);
    background: var(--accent-weak);
    border-radius: var(--r-2xl);
    opacity: 0.85;
    margin-bottom: 10px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

/* Contact */
form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.req { color: var(--muted); margin-left: 2px; }

label {
    font-size: 12px;
    font-weight: 800;
    color: var(--ink);
}

input, select, textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    background: #f6f7fb;
    font: inherit;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: color-mix(in srgb, var(--accent) 55%, #0000);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, #0000);
    background: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 28px 0;
    color: var(--muted);
    font-size: 13px;
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Text measure helpers */
p { max-width: var(--measure); }

/* Slightly roomier service cards without changing markup */
.card.service { padding: var(--card-pad-lg); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn { transition: none; }
    .btn:hover { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .grid2 { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .fields { grid-template-columns: 1fr; }
}