/* DevKH public site stylesheet. Plain CSS, zero build step required. */

:root {
    /* Brand Accent: DevKH Logo Precision Blue (#4871F7) */
    --brand: #4871F7;
    --brand-hover: #365ee4;
    --brand-active: #254ec9;
    --brand-soft: #eff3ff;
    --brand-tint: #e0e9fe;
    --brand-border: #c7d6fe;
    --brand-glow: rgba(72, 113, 247, 0.16);

    /* Aliased for backward compatibility */
    --blue: var(--brand);
    --blue-hover: var(--brand-hover);
    --blue-deep: var(--brand-active);
    --blue-soft: var(--brand-soft);
    --blue-border: var(--brand-border);
    --blue-glow: var(--brand-glow);

    /* Neutral Canvas & Contrast (Crisp Light SaaS) */
    --ink: #0f172a;
    --ink-secondary: #334155;
    --ink-soft: #64748b;
    --ink-faint: #94a3b8;

    /* Surfaces & Fine Lines */
    --paper: #ffffff;
    --surface: #f8fafc;
    --surface-tint: #f1f5f9;
    --line: #e2e8f0;
    --line-soft: #f1f5f9;
    --line-hover: #cbd5e1;

    /* Success / Live Indicators */
    --green: #10b981;
    --green-soft: #ecfdf5;
    --green-border: #a7f3d0;
    --green-text: #065f46;

    /* Dark Surfaces (High-Contrast Luxury for Contact & Footer) */
    --dark-bg: #090d16;
    --dark-card: #0f172a;
    --dark-line: rgba(255, 255, 255, 0.1);
    --dark-text: #ffffff;
    --dark-text-soft: rgba(255, 255, 255, 0.72);
    --dark-text-faint: rgba(255, 255, 255, 0.45);

    /* Layout & Dimensions */
    --font: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --wrap: 76rem;
    --gutter: clamp(1.25rem, 4vw, 2.25rem);
    --space: clamp(4.5rem, 8vw, 7rem);
    --header-h: 4.5rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Precision Drop Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 14px 34px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 24px 60px -12px rgba(15, 23, 42, 0.12), 0 8px 18px -4px rgba(15, 23, 42, 0.05);
    --shadow-blue: 0 4px 18px rgba(72, 113, 247, 0.22);
    --shadow-brand: 0 4px 18px rgba(72, 113, 247, 0.22);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
}

h1 {
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.5rem);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: .65rem 1.15rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: top .2s ease;
}
.skip-link:focus {
    top: 1rem;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .76rem 1.45rem;
    border-radius: var(--radius-md);
    font: inherit;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.25;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.button--small {
    padding: .5rem 1.1rem;
    font-size: .88rem;
    border-radius: 10px;
}

.button--block {
    width: 100%;
}

.button--primary {
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(72, 113, 247, 0.2), 0 4px 14px rgba(72, 113, 247, 0.22);
}
.button--primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 2px 4px rgba(72, 113, 247, 0.25), 0 6px 18px rgba(72, 113, 247, 0.28);
    transform: translateY(-1px);
}
.button--primary:active {
    transform: translateY(0);
}

.button--outline {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
}
.button--outline:hover {
    border-color: var(--ink-faint);
    background: var(--surface);
    color: var(--ink);
    transform: translateY(-1px);
}

.button__arrow {
    display: inline-block;
    transition: transform .18s ease;
}
.button:hover .button__arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Sticky Glass Header & Mobile Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: var(--header-h);
}

.site-header__logo img {
    width: 116px;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 500;
    font-size: .98rem;
}

.site-nav a:not(.button) {
    text-decoration: none;
    color: var(--ink-soft);
    padding: .45rem .85rem;
    border-radius: var(--radius-full);
    transition: color .15s ease, background-color .15s ease;
}
.site-nav a:not(.button):hover {
    color: var(--ink);
    background: var(--surface-tint);
}
.site-nav a[aria-current="page"] {
    color: var(--blue);
    background: var(--blue-soft);
    font-weight: 600;
}

.site-nav .button {
    margin-left: .5rem;
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    cursor: pointer;
    position: relative;
    transition: border-color .15s ease;
}
.nav-toggle:hover {
    border-color: var(--ink-faint);
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    position: absolute;
    left: 50%;
    width: 1.2rem;
    height: 2px;
    margin-left: -.6rem;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar {
    top: 50%;
    margin-top: -1px;
}
.nav-toggle__bar::before, .nav-toggle__bar::after {
    content: "";
    left: 0;
    margin-left: 0;
}
.nav-toggle__bar::before { transform: translateY(-6px); }
.nav-toggle__bar::after { transform: translateY(6px); }

.is-open .nav-toggle__bar { background: transparent; }
.is-open .nav-toggle__bar::before { transform: rotate(45deg); background: var(--ink); }
.is-open .nav-toggle__bar::after { transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 52rem) {
    .nav-toggle {
        display: block;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        padding: .75rem var(--gutter) 1.5rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
    }
    .is-open .site-nav {
        display: flex;
    }
    .site-nav a:not(.button) {
        padding: .85rem 1rem;
        border-radius: var(--radius-sm);
        border-bottom: 1px solid var(--line-soft);
        color: var(--ink);
    }
    .site-nav a[aria-current="page"] {
        color: var(--blue);
        background: var(--blue-soft);
    }
    .site-nav .button {
        margin: .85rem 0 0;
    }
}

/* ==========================================================================
   Hero Section: Ambient Tech Studio with Showcase
   ========================================================================== */
.hero {
    position: relative;
    background:
        radial-gradient(75% 55% at 50% 0%, rgba(72, 113, 247, 0.08) 0%, rgba(248, 250, 252, 0.5) 55%, var(--paper) 100%);
    border-bottom: 1px solid var(--line);
    padding: clamp(3.5rem, 6vw, 5.25rem) 0 clamp(3rem, 5vw, 4.5rem);
    overflow: hidden;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Eyebrow Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .95rem;
    border-radius: var(--radius-full);
    background: var(--paper);
    border: 1px solid rgba(72, 113, 247, 0.22);
    color: var(--blue-deep);
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 1px 4px rgba(72, 113, 247, 0.06);
    margin-bottom: 1.35rem;
}
.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(72, 113, 247, 0.2);
    animation: hero-dot-pulse 2s infinite ease-in-out;
}
@keyframes hero-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.85); }
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--ink);
    max-width: 22ch;
    text-wrap: balance;
    margin: 0 auto;
}

.hero__lead {
    margin: 1.35rem auto 0;
    max-width: 52ch;
    font-size: clamp(1.06rem, 1.35vw, 1.2rem);
    color: var(--ink-soft);
    line-height: 1.6;
    text-wrap: pretty;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-top: 1.85rem;
}
.hero__actions .button {
    min-height: 2.9rem;
}

/* ==========================================================================
   Product Showcase Stage (Browser Mockup + Segmented Tabs)
   ========================================================================== */
.showcase {
    width: 100%;
    max-width: 68rem;
    margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

/* Segmented tab switcher sitting above browser window */
.showcase__nav-wrapper {
    display: flex;
    width: 100%;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 6px var(--gutter);
}
.showcase__nav-wrapper::-webkit-scrollbar { display: none; }

.showcase__tabs {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .32rem;
    border-radius: var(--radius-full);
    background: #f1f5f9;
    border: 1px solid var(--line);
    margin: 0 auto;
    flex-shrink: 0;
}

.showcase__tab {
    display: inline-flex;
    align-items: center;
    padding: .48rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .16s ease;
    white-space: nowrap;
    cursor: pointer;
}
.showcase__tab:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .7);
}
.showcase__tab[aria-selected="true"] {
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    border-color: rgba(72, 113, 247, 0.16);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.showcase__tab-name {
    display: inline-block;
    line-height: 1.25;
}

/* Panel & Browser Mockup */
.showcase__panel {
    display: block;
    animation: showcase-fade .2s ease-out;
}
.showcase__panel[hidden] {
    display: none;
}
@keyframes showcase-fade {
    from { opacity: .8; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.showcase__frame {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        0 14px 34px -6px rgba(15, 23, 42, 0.07),
        0 32px 72px -16px rgba(15, 23, 42, 0.1);
    text-align: left;
}

/* Window bar with macOS dots & address */
.showcase__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 2.85rem;
    padding: 0 1.25rem;
    background: #fafbfe;
    border-bottom: 1px solid var(--line);
}

.showcase__dots {
    display: flex;
    gap: .42rem;
    flex: none;
    align-items: center;
}
.showcase__dots i {
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
}
.showcase__dots i:nth-child(1) { background: #ff5f56; }
.showcase__dots i:nth-child(2) { background: #ffbd2e; }
.showcase__dots i:nth-child(3) { background: #27c93f; }

.showcase__address {
    flex: 1;
    max-width: 22rem;
    margin: 0 auto;
    padding: .24rem .95rem;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink-secondary);
    font-size: .8rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.showcase__address svg {
    color: var(--ink-soft);
    opacity: .75;
    flex: none;
}

.showcase__status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 600;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: .22rem .75rem;
    border-radius: var(--radius-full);
    flex: none;
}
.showcase__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .25);
}

.showcase__screen {
    background: var(--surface);
    overflow: hidden;
}
.showcase__screen img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
    display: block;
}

/* Window footer with product details and quick actions */
.showcase__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.35rem 1.75rem;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.showcase__info {
    flex: 1;
    min-width: min(100%, 20rem);
}
.showcase__meta-line {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.showcase__tag {
    font-size: .74rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
    background: var(--blue-soft);
    color: var(--blue-deep);
}
.showcase__product-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}
.showcase__summary {
    font-size: .96rem;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 58ch;
    margin-top: .35rem;
}

.showcase__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .85rem 1.25rem;
    flex: none;
}

.showcase__more {
    font-size: .95rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: color .15s ease;
}
.showcase__more:hover {
    color: var(--ink);
}

/* Working with us: 4 assurance cards */
.promises {
    list-style: none;
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    padding: clamp(1.75rem, 4vw, 2.5rem) 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 1.15rem;
    width: 100%;
}
@media (min-width: 40rem) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.promises__item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.15rem 1.25rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    text-align: left;
    transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
}
.promises__item:hover {
    border-color: rgba(72, 113, 247, .3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.promises__icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--blue-soft);
    color: var(--blue);
    flex: none;
    margin-top: .1rem;
}
.promises__icon .icon {
    width: 1.05rem;
    height: 1.05rem;
    stroke-width: 2.5;
}

.promises__content {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.promises__title {
    font-size: .98rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}
.promises__desc {
    font-size: .86rem;
    color: var(--ink-soft);
    line-height: 1.35;
}

/* ==========================================================================
   Section Base Styles
   ========================================================================== */
.section {
    padding: var(--space) 0;
}
.section--tint {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section--flush-top {
    padding-top: 0;
}

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section__eyebrow {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.section__intro {
    margin-top: .75rem;
    color: var(--ink-soft);
    max-width: 54ch;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Services Grid ("What we build")
   ========================================================================== */
.services-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 48rem) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.service-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 4vw, 2.25rem);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
    border-color: rgba(72, 113, 247, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.service-card__icon-wrap {
    margin-bottom: 1.25rem;
}
.service-card__icon {
    display: inline-grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    transition: transform .2s ease;
}
.service-card:hover .service-card__icon {
    transform: scale(1.05);
}
.service-card__icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.service-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .6rem;
}
.service-card__text {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-card__tags {
    list-style: none;
    margin: 0;
    padding: 1.15rem 0 0;
    border-top: 1px solid var(--line-soft);
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.service-card__tags li {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-secondary);
    background: var(--surface-tint);
    padding: .25rem .65rem;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Process Roadmap ("How a project runs")
   ========================================================================== */
.process-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 40rem) {
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 64rem) {
    .process-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.process-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-card:hover {
    border-color: rgba(72, 113, 247, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.process-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.process-card__number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--blue);
    background: var(--blue-soft);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
}
.process-card__milestone {
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-faint);
}

.process-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.process-card__text {
    color: var(--ink-soft);
    font-size: .98rem;
    line-height: 1.55;
}

/* ==========================================================================
   High-Converting Contact Section (Luxury Dark Card)
   ========================================================================== */
.contact {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    background: var(--paper);
}

.contact__card {
    position: relative;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(72, 113, 247, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 15% 90%, rgba(72, 113, 247, 0.14) 0%, transparent 50%),
        var(--dark-bg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-xl);
    padding: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    overflow: hidden;
}

.contact__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 58rem) {
    .contact__grid {
        grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
        gap: 4rem;
    }
}

.contact__eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #9bb8ff;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.contact__title {
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: #ffffff;
    line-height: 1.1;
}

.contact__lead {
    margin-top: 1.15rem;
    font-size: 1.12rem;
    color: var(--dark-text-soft);
    line-height: 1.6;
    max-width: 48ch;
}

.contact__perks {
    list-style: none;
    margin: 2rem 0 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--dark-line);
    display: grid;
    gap: 1rem;
    font-size: .95rem;
    color: var(--dark-text-soft);
}
.contact__perks li {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.contact__perk-icon {
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(72, 113, 247, 0.3);
    color: #9bb8ff;
    flex: none;
}
.contact__perk-icon .icon {
    width: .95rem;
    height: .95rem;
    stroke-width: 2.5;
}

.contact__panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3.5vw, 2.25rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.contact__panel-header {
    margin-bottom: 1.5rem;
}
.contact__panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}
.contact__panel-sub {
    font-size: .9rem;
    color: var(--dark-text-faint);
    margin-top: .25rem;
}

.contact__channels {
    display: grid;
    gap: .85rem;
    margin-bottom: 1.5rem;
}

.contact__channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .95rem 1.15rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    transition: all .16s ease;
}
.contact__channel:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}
.contact__channel--highlight {
    background: rgba(72, 113, 247, 0.15);
    border-color: rgba(72, 113, 247, 0.4);
}
.contact__channel--highlight:hover {
    background: rgba(72, 113, 247, 0.25);
    border-color: rgba(72, 113, 247, 0.6);
}
.contact__channel--static {
    cursor: default;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}
.contact__channel--static:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
}

.contact__channel-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    flex: none;
}
.contact__channel-icon--tg {
    background: #0088cc;
    color: #ffffff;
}

.contact__channel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.contact__channel-name {
    font-size: .8rem;
    color: var(--dark-text-faint);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .04em;
}
.contact__channel-val,
.contact__channel-detail {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.contact__channel-tag {
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .55rem;
    border-radius: var(--radius-full);
    background: #10b981;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.contact__btn {
    font-size: 1.05rem;
    padding: .95rem;
}

/* ==========================================================================
   Project Cards & Portfolio Grid
   ========================================================================== */
.project-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.75rem;
}
@media (min-width: 40rem) {
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
    .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
    border-color: rgba(72, 113, 247, 0.35);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.project-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--surface);
    overflow: hidden;
}
.project-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform .3s ease;
}
.project-card:hover .project-card__thumb img {
    transform: scale(1.025);
}

.project-card__placeholder {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .22) 0 18%, transparent 18.5%),
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .1) 0 32%, transparent 32.5%),
        var(--blue);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.project-card__demo-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .22rem .65rem;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: .74rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.project-card__demo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.project-card__body {
    display: flex;
    flex-direction: column;
    padding: 1.35rem 1.5rem 1.6rem;
    flex: 1;
}

.project-card__meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .45rem;
}

.project-card__meta {
    color: var(--blue);
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.project-card__action-icon {
    font-size: 1.1rem;
    color: var(--ink-faint);
    transition: transform .18s ease, color .18s ease;
}
.project-card:hover .project-card__action-icon {
    color: var(--blue);
    transform: translateX(3px);
}

.project-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: .45rem;
}

.project-card__summary {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.55;
}

.empty {
    color: var(--ink-soft);
    padding: 3rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    text-align: center;
}

/* ==========================================================================
   Page Headers (Portfolio Index & Case Studies)
   ========================================================================== */
.page-head {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
    background: radial-gradient(70% 50% at 50% 0%, rgba(72, 113, 247, 0.06) 0%, transparent 60%);
}

.page-head__eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: .6rem;
}

.page-head h1 {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.page-head__lead {
    margin-top: 1rem;
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: var(--ink-soft);
    max-width: 54ch;
    line-height: 1.6;
}

.page-head__actions {
    margin-top: 1.75rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: 1.5rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    transition: color .15s ease;
}
.back-link:hover {
    color: var(--ink);
}

/* ==========================================================================
   Case Study Project Page Details
   ========================================================================== */
.case-head__meta {
    color: var(--blue);
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: .6rem;
}
.case-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.shot {
    margin: 0;
}
.shot__frame {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.shot__frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.shot__bar {
    display: flex;
    align-items: center;
    height: 2.6rem;
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
    background: #fafbfe;
}
.shot__bar span {
    flex: 1;
    max-width: 26rem;
    margin: 0 auto;
    padding: .22rem .85rem;
    border-radius: var(--radius-full);
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink-secondary);
    font-size: .82rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shot figcaption {
    margin-top: .85rem;
    color: var(--ink-soft);
    font-size: .95rem;
    max-width: 60ch;
}
.shot--cover figcaption {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.case-title {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    letter-spacing: -0.025em;
}
.case-title--block {
    margin-bottom: 2rem;
}

.case-overview {
    display: grid;
    gap: 2.5rem;
}
.case-facts {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    max-width: 64ch;
}
.case-facts__wide {
    grid-column: 1 / -1;
}
.case-facts dt {
    color: var(--ink-soft);
    font-size: .92rem;
}
.case-facts dd {
    margin: .25rem 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.case-facts a {
    color: var(--blue);
}

.tags {
    list-style: none;
    margin: .25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.tags li {
    padding: .28rem .75rem;
    border-radius: var(--radius-full);
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-size: .92rem;
    font-weight: 600;
}

.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2rem 2.5rem;
}
@media (min-width: 40rem) {
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.features li {
    padding-top: 1.25rem;
    border-top: 2px solid var(--blue);
}
.features h3 {
    margin-bottom: .45rem;
}
.features p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}

.gallery {
    display: grid;
    gap: 2.5rem 2rem;
}
@media (min-width: 56rem) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery .shot:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 1rem);
    }
}
.case-cta {
    margin-top: 3.5rem;
    text-align: center;
}

.split {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 56rem) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; }
}

.prose {
    max-width: 64ch;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink-secondary);
}
.prose p + p {
    margin-top: 1.35em;
}

.next-project {
    border-top: 1px solid var(--line);
    background: var(--surface);
}
.next-project a {
    display: block;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    text-decoration: none;
    transition: color .2s ease;
}
.next-project__label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--blue);
    margin-bottom: .35rem;
}
.next-project__name {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ink);
    transition: color .18s ease;
}
.next-project a:hover .next-project__name {
    color: var(--blue);
}

/* ==========================================================================
   Dedicated Pages Components (Services, Process, Contact)
   ========================================================================== */
.text-center {
    text-align: center;
}

.feature-bullets {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
    display: grid;
    gap: .65rem;
}
.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .98rem;
    color: var(--ink-secondary);
    line-height: 1.5;
}
.feature-bullets li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: .75rem;
    font-weight: 700;
    flex: none;
    margin-top: .15rem;
}

/* Services Detailed Cards */
.service-detail-grid {
    display: grid;
    gap: 2.5rem;
}

.service-detail-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--shadow-xs);
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-detail-card:hover {
    border-color: rgba(72, 113, 247, 0.3);
    box-shadow: var(--shadow-lg);
}

.service-detail-card__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.service-detail-card__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    flex: none;
}
.service-detail-card__icon .icon {
    width: 1.75rem;
    height: 1.75rem;
}

.service-detail-card__num {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: .25rem;
}
.service-detail-card h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    letter-spacing: -0.025em;
    color: var(--ink);
}

.service-detail-card__desc {
    font-size: 1.12rem;
    color: var(--ink-secondary);
    line-height: 1.65;
    max-width: 64ch;
    margin-bottom: 2rem;
}

.service-detail-card__body {
    display: grid;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line-soft);
}
@media (min-width: 52rem) {
    .service-detail-card__body {
        grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
        gap: 3rem;
    }
}
.service-detail-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.proof-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Process Deep Cards */
.process-deep-list {
    display: grid;
    gap: 2rem;
}

.process-deep-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 3rem);
    box-shadow: var(--shadow-xs);
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-deep-card:hover {
    border-color: rgba(72, 113, 247, 0.3);
    box-shadow: var(--shadow-md);
}

.process-deep-card__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.process-deep-card__step {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
    background: var(--blue-soft);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: none;
}
.process-deep-card__tag {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--ink-faint);
    text-transform: uppercase;
    margin-bottom: .25rem;
}
.process-deep-card h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    color: var(--ink);
}

.process-deep-card__grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 52rem) {
    .process-deep-card__grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
        gap: 3.5rem;
    }
}
.process-deep-card__desc p {
    font-size: 1.08rem;
    color: var(--ink-secondary);
    line-height: 1.65;
}
.process-deep-card__desc p + p {
    margin-top: 1rem;
}

.process-deep-card__deliverable {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.process-deep-card__deliverable h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .5rem;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
@media (min-width: 48rem) {
    .principles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.principle-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-xs);
    transition: all .2s ease;
}
.principle-card:hover {
    border-color: rgba(72, 113, 247, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.principle-card__badge {
    display: inline-block;
    font-size: .84rem;
    font-weight: 800;
    color: var(--blue);
    background: var(--blue-soft);
    padding: .25rem .7rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.principle-card h3 {
    font-size: 1.2rem;
    margin-bottom: .6rem;
}
.principle-card p {
    color: var(--ink-soft);
    font-size: .98rem;
    line-height: 1.6;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 48rem) {
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}
.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-xs);
}
.faq-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .65rem;
}
.faq-item p {
    color: var(--ink-secondary);
    font-size: .98rem;
    line-height: 1.6;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    background: #060911;
    color: rgba(255, 255, 255, 0.7);
    font-size: .97rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__grid {
    display: grid;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 3.5rem;
}
@media (min-width: 48rem) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 3.5rem;
    }
}

.site-footer__logo-link {
    display: inline-block;
    margin-bottom: 1.15rem;
}
.site-footer__brand img {
    width: 114px;
    height: auto;
    display: block;
}

.site-footer__bio {
    max-width: 42ch;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
}

.site-footer__location {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    padding: .35rem .75rem;
    border-radius: var(--radius-full);
}
.site-footer__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.site-footer__title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
    letter-spacing: .02em;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}
.site-footer__links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    transition: color .15s ease;
}
.site-footer__links a:hover {
    color: #ffffff;
}
.site-footer a:focus-visible {
    outline-color: #ffffff;
}

.site-footer__bottom {
    font-size: .9rem;
    color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom p {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.75rem 0;
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
