:root {
    --bg: #fafaf8;
    --bg-soft: #f4f3ef;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --ink: #14121a;
    --ink-muted: #5a566a;
    --ink-soft: #8a8699;
    --border: #e7e4dd;

    --brand-1: #6366f1; /* indigo */
    --brand-2: #ec4899; /* pink */
    --accent-soft: #faf3ff;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(20, 18, 26, 0.04), 0 1px 1px rgba(20, 18, 26, 0.03);
    --shadow: 0 6px 20px rgba(20, 18, 26, 0.06), 0 2px 4px rgba(20, 18, 26, 0.04);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

img, svg { max-width: 100%; display: block; }

/* ---------- Layout ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    background: rgba(250, 250, 248, 0.78);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
}
.nav::after {
    /* Subtle divider — only visible when scrolled */
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: var(--border);
    opacity: 0.5;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.brand-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}
.brand-mark.small {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}
.brand-text {
    font-size: 18px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    text-decoration: none;
    color: var(--ink-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta {
    padding: 8px 16px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 999px;
    font-weight: 600;
}
.nav-links a.nav-cta:hover { color: var(--bg); opacity: 0.85; }

@media (max-width: 640px) {
    .nav { padding: 14px 20px; }
    .nav-links { gap: 16px; }
    .nav-links a:not(.nav-cta) { display: none; }
}

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

.hero {
    position: relative;
    padding: 96px 32px 120px;
    overflow: hidden;
    isolation: isolate;
}
.hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.eyebrow {
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-soft);
    margin: 0 0 16px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(40px, 6.2vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0 0 24px;
    color: var(--ink);
}
.hero h1 .accent {
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 500;
}

.lede {
    font-size: clamp(16px, 1.7vw, 19px);
    color: var(--ink-muted);
    max-width: 620px;
    margin: 0 auto 36px;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    line-height: 1;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--ink);
    color: var(--bg);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    background: #000;
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--surface);
    border-color: var(--ink);
}

/* Hero background art */

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}
.blob-1 {
    top: -120px;
    left: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.55), transparent 70%);
}
.blob-2 {
    bottom: -160px;
    right: -120px;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.45), transparent 70%);
}
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(20, 18, 26, 0.08) 1px, transparent 1.5px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 45%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 45%, transparent 80%);
    opacity: 0.9;
}

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

.section {
    padding: 96px 32px;
    background: var(--bg);
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    max-width: 780px;
}

.section-lede {
    font-size: 18px;
    color: var(--ink-muted);
    max-width: 720px;
    margin: 0 0 44px;
}
.section-lede code {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    background: var(--bg-soft);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.92em;
    color: var(--ink);
}

/* ---------- Service cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.card {
    padding: 28px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #d8d4cb;
}
.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.card-icon svg {
    width: 22px;
    height: 22px;
}
.card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.005em;
}
.card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- Feature section (migration plugin) ---------- */

.section-feature {
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-feature .section-inner { max-width: 900px; }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: grid;
    gap: 18px;
}
.feature-list li {
    position: relative;
    padding: 20px 22px 20px 54px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15.5px;
    color: var(--ink-muted);
    line-height: 1.6;
}
.feature-list li::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 20px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-size: cover;
    -webkit-mask-size: cover;
}
.feature-list strong { color: var(--ink); font-weight: 600; }
.feature-list code {
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    background: var(--accent-soft);
    color: #8b5cf6;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.fine-print {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

/* ---------- Contact section ---------- */

.section-contact { text-align: center; padding-bottom: 120px; }
.section-contact .section-lede { margin-left: auto; margin-right: auto; }

.email-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 18px 28px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 999px;
    font-weight: 600;
    font-size: 17px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.email-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(20, 18, 26, 0.14);
}
.email-pill-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
}
.email-pill-addr { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace; }
.email-pill svg { width: 18px; height: 18px; }

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

.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 32px 40px;
    background: var(--bg);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink-muted);
    font-size: 14.5px;
}
.footer-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--ink-soft);
    font-size: 14px;
}
.footer-meta a {
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-meta a:hover {
    color: var(--ink);
    border-color: var(--ink);
}
.footer-copy { color: var(--ink-soft); }

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

@media (max-width: 640px) {
    .hero { padding: 64px 20px 80px; }
    .section { padding: 72px 20px; }
    .site-footer { padding: 28px 20px 32px; }
    .email-pill { flex-wrap: wrap; justify-content: center; padding: 16px 22px; font-size: 15px; }
    .email-pill-addr { font-size: 14px; word-break: break-all; }
    .feature-list li { padding-left: 48px; }
    .feature-list li::before { left: 16px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    html { scroll-behavior: auto; }
}
