:root {
    --bg: #050b1a;
    --panel: #0b1428;
    --panel-soft: rgba(15, 23, 42, .78);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --blue: #2563eb;
    --cyan: #38bdf8;
    --purple: #7c3aed;
    --border: rgba(148, 163, 184, .18);
    --shadow: 0 28px 90px rgba(2, 6, 23, .46);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 70% 12%, rgba(37,99,235,.28), transparent 28%),
        radial-gradient(circle at 25% 70%, rgba(124,58,237,.18), transparent 30%),
        var(--bg);
}
a { color: inherit; text-decoration: none; }
.site-header {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 28px 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}
.logo { display: flex; align-items: center; gap: 14px; font-size: 24px; font-weight: 900; }
.logo span { color: #3b82f6; font-size: 34px; }
.nav-links { display: flex; gap: 44px; color: var(--muted); font-weight: 800; }
.nav-links a:hover { color: white; }
.top-button { justify-self: end; background: linear-gradient(135deg, #2563eb, #7c3aed); padding: 18px 30px; border-radius: 12px; font-weight: 900; box-shadow: var(--shadow); }
.menu-toggle { display: none; }
main { width: min(1480px, calc(100% - 48px)); margin: 0 auto; }
.hero-section {
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(420px, .88fr) minmax(560px, 1.12fr);
    gap: 42px;
    align-items: center;
    padding: 42px 0 35px;
}
.eyebrow, .section-label { color: #3b82f6; font-size: 20px; font-weight: 800; margin: 0 0 18px; }
.hero-copy h1 {
    font-size: clamp(48px, 4.45vw, 78px);
    line-height: 1.06;
    margin: 0;
    letter-spacing: -3px;
    max-width: 720px;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 44%, #38bdf8 67%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.intro { max-width: 670px; color: var(--muted); font-size: 21px; line-height: 1.65; margin: 28px 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.primary-btn, .secondary-btn { border-radius: 12px; font-weight: 900; transition: .2s ease; }
.primary-btn { background: linear-gradient(135deg, #2563eb, #7c3aed); padding: 17px 28px; box-shadow: var(--shadow); }
.secondary-btn { padding: 17px 28px; border: 1px solid var(--border); background: rgba(15, 23, 42, .52); }
.top-button:hover, .primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); }
.hero-visual { min-height: 520px; display: flex; align-items: center; justify-content: center; }
.visual-shell { position: relative; width: min(100%, 760px); height: 520px; isolation: isolate; }
.glow { position: absolute; inset: 60px 80px 60px 80px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.62), transparent 66%); filter: blur(24px); z-index: -1; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.developer-card { position: absolute; left: 50%; top: 50%; width: 610px; height: 375px; transform: translate(-50%, -50%) perspective(900px) rotateY(-5deg) rotateX(2deg); border-radius: 28px; background: linear-gradient(145deg, rgba(15,23,42,.96), rgba(2,6,23,.98)); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.screen { position: absolute; border-radius: 18px; background: rgba(2, 6, 23, .88); border: 1px solid var(--border); padding: 18px; }
.screen-main { left: 34px; top: 55px; width: 318px; height: 230px; }
.screen-code { right: 34px; bottom: 44px; width: 300px; color: #93c5fd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.65; font-size: 15px; }
.screen-code p { margin: 8px 0; }
.screen-bar { height: 18px; width: 180px; border-radius: 999px; background: linear-gradient(90deg, #334155, #1d4ed8); margin-bottom: 28px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dashboard-grid span { height: 60px; border-radius: 14px; background: rgba(37,99,235,.2); }
.chart-line { margin-top: 24px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #4f46e5, #7c3aed); }
.floating-card { position: absolute; z-index: 5; width: 230px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--border); background: rgba(15, 23, 42, .86); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgba(2,6,23,.45); animation: float 5s ease-in-out infinite; }
.floating-card strong { display: block; margin-bottom: 8px; font-size: 17px; }
.floating-card span { display: block; color: var(--muted); line-height: 1.5; font-size: 15px; }
.floating-1 { left: 20px; top: 24px; }
.floating-2 { right: 18px; top: 245px; animation-delay: .55s; }
.floating-3 { left: 78px; bottom: 24px; animation-delay: 1.05s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 28px 0 72px; }
.stat-card, .simple-card, .project-card { border: 1px solid var(--border); background: linear-gradient(180deg, rgba(15,23,42,.86), rgba(15,23,42,.5)); border-radius: 22px; box-shadow: 0 18px 70px rgba(2,6,23,.3); }
.stat-card { padding: 30px; min-height: 255px; }
.stat-icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 20px; background: rgba(37,99,235,.2); font-size: 30px; margin-bottom: 24px; }
.stat-card h2 { margin: 0; font-size: 56px; color: #6366f1; line-height: 1; }
.stat-card h3 { margin: 13px 0 14px; font-size: 21px; }
.stat-card p, .simple-card p, .project-card p { color: var(--muted); line-height: 1.6; }
.section-block { margin: 90px 0; }
.section-block h2 { font-size: clamp(32px, 4vw, 50px); margin: 0 0 28px; letter-spacing: -1px; }
.service-grid, .project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.simple-card { padding: 28px; }
.simple-card span { font-size: 36px; }
.simple-card h3 { font-size: 24px; margin: 18px 0 10px; }
.project-card { overflow: hidden; }
.project-card img, .project-placeholder { width: 100%; height: 215px; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, rgba(37,99,235,.3), rgba(124,58,237,.24)); color: white; font-size: 26px; font-weight: 900; text-align: center; padding: 20px; }
.project-content { padding: 24px; }
.project-content h3 { margin: 0 0 10px; font-size: 24px; }
.project-content .short { color: white; font-weight: 800; }
.project-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.project-links a { color: #60a5fa; font-weight: 900; }
.tech-section { padding: 25px 0 80px; text-align: center; overflow: hidden; }
.tech-section p { color: var(--muted); font-size: 19px; margin-bottom: 28px; }
.tech-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.tech-track { width: max-content; display: flex; gap: 34px; animation: marquee 28s linear infinite; }
.tech-pill { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: white; font-weight: 800; font-size: 17px; }
.tech-pill b { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 12px; background: rgba(37,99,235,.2); color: #67e8f9; font-size: 13px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
.footer { width: min(1480px, calc(100% - 48px)); margin: 40px auto 0; border-top: 1px solid var(--border); padding: 70px 0; text-align: center; }
.footer h2 { font-size: 42px; margin: 0 0 12px; }
.footer p { color: var(--muted); font-size: 20px; }
.footer a { display: inline-block; margin-top: 18px; background: linear-gradient(135deg, #2563eb, #7c3aed); padding: 16px 28px; border-radius: 12px; font-weight: 900; }
@media (max-width: 1180px) {
    .site-header { grid-template-columns: 1fr auto; }
    .nav-links { display: none; }
    .menu-toggle { display: block; justify-self: end; background: rgba(15,23,42,.7); border: 1px solid var(--border); color: white; border-radius: 10px; padding: 10px 14px; }
    .top-button { display: none; }
    .hero-section { grid-template-columns: 1fr; }
    .hero-copy h1 { max-width: 900px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .service-grid, .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    main, .site-header, .footer { width: min(100% - 28px, 1480px); }
    .hero-section { padding-top: 20px; }
    .hero-copy h1 { font-size: 44px; letter-spacing: -1.5px; }
    .intro { font-size: 18px; }
    .visual-shell { height: 580px; }
    .developer-card { width: 100%; height: 330px; }
    .screen-main { width: 260px; height: 185px; left: 20px; }
    .screen-code { width: 250px; right: 15px; bottom: 28px; font-size: 12px; }
    .floating-card { width: 220px; }
    .floating-1 { left: 0; top: 0; }
    .floating-2 { right: 0; top: 195px; }
    .floating-3 { left: 20px; right: auto; bottom: 0; }
    .stats-row { grid-template-columns: 1fr; }
}


/* v4 project image and patient UI preview fixes */
.project-image-link { display:block; }
.project-card img { transition: transform .35s ease, filter .35s ease; }
.project-card:hover img { transform: scale(1.035); filter: brightness(1.08); }
.simple-card { position: relative; overflow: hidden; }
.simple-card::after { content: ''; position: absolute; right: -34px; top: -34px; width: 115px; height: 115px; border-radius: 999px; background: rgba(96,165,250,.12); }
.patient-preview-body { background: #f7fbff; color: #0f172a; }
.patient-top { width: min(1180px, calc(100% - 36px)); margin: 22px auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: white; box-shadow: 0 16px 45px rgba(15,23,42,.08); }
.patient-top strong { font-size: 24px; color: #0f766e; }
.patient-top strong span { color: #2563eb; }
.back-link, .download-link { color: #2563eb; font-weight: 900; }
.patient-preview { width: min(1180px, calc(100% - 36px)); margin: 0 auto 70px; }
.patient-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding: 52px; border-radius: 34px; background: linear-gradient(135deg, #ecfeff, #eff6ff 55%, #ffffff); box-shadow: 0 22px 70px rgba(37,99,235,.14); overflow: hidden; }
.patient-label { color: #0f766e; text-transform: uppercase; font-weight: 900; letter-spacing: 2px; }
.patient-hero h1 { font-size: clamp(42px, 6vw, 74px); line-height: .96; margin: 0 0 20px; letter-spacing: -2px; }
.patient-hero p { font-size: 20px; line-height: 1.7; color: #475569; }
.patient-hero img { width: 100%; border-radius: 30px; box-shadow: 0 28px 60px rgba(15,23,42,.20); }
.patient-actions { display:flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.patient-actions a { padding: 15px 22px; border-radius: 999px; background: #2563eb; color: white; font-weight: 900; }
.patient-actions a + a { background: white; color: #2563eb; border: 1px solid #bfdbfe; }
.patient-services { display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.patient-services article { background: white; border-radius: 24px; padding: 24px; box-shadow: 0 16px 45px rgba(15,23,42,.08); }
.patient-services b { font-size: 34px; }
.patient-services h3 { margin: 14px 0 8px; }
.patient-services p { color: #64748b; line-height: 1.55; }
.patient-services span { display:inline-block; margin-top: 8px; color: #0f766e; font-weight: 900; font-size: 20px; }
@media (max-width: 850px) { .patient-top, .patient-hero { flex-direction: column; } .patient-hero { grid-template-columns: 1fr; padding: 28px; } .patient-services { grid-template-columns: 1fr; } }

/* v5: cleaner hero visual and no overlapping service cards */
.fixed-service-visual {
    width: min(100%, 780px);
    height: 500px;
}
.fixed-service-visual .developer-card {
    width: 560px;
    height: 350px;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%) perspective(900px) rotateY(-4deg) rotateX(1deg);
    z-index: 2;
}
.fixed-service-visual .screen-main {
    left: 32px;
    top: 58px;
    width: 285px;
    height: 214px;
}
.fixed-service-visual .screen-code {
    right: 30px;
    bottom: 48px;
    width: 258px;
    font-size: 14px;
}
.fixed-service-visual .floating-card {
    width: 218px;
    padding: 16px 18px;
    border-radius: 18px;
    z-index: 6;
}
.fixed-service-visual .floating-1 {
    left: 18px;
    top: 52px;
}
.fixed-service-visual .floating-2 {
    right: 10px;
    top: 150px;
}
.fixed-service-visual .floating-3 {
    right: 84px;
    left: auto;
    bottom: 28px;
}
.fixed-service-visual .floating-card strong { font-size: 16px; }
.fixed-service-visual .floating-card span { font-size: 14px; }
.clickable-project { cursor: pointer; }
.clickable-project:focus,
.clickable-project:hover {
    border-color: rgba(96,165,250,.55);
    transform: translateY(-4px);
    transition: transform .25s ease, border-color .25s ease;
}
.clickable-project .project-links a { position: relative; z-index: 3; }
.project-links a[href*="downloads"] { display: none !important; }
.hidden-download-link { display: none !important; }

@media (max-width: 1180px) {
    .fixed-service-visual { height: 540px; }
    .fixed-service-visual .floating-1 { left: 12px; top: 0; }
    .fixed-service-visual .floating-2 { right: 12px; top: 175px; }
    .fixed-service-visual .floating-3 { right: 55px; bottom: 0; }
}
@media (max-width: 680px) {
    .fixed-service-visual { height: 610px; }
    .fixed-service-visual .developer-card {
        width: 100%;
        height: 330px;
        top: 46%;
    }
    .fixed-service-visual .floating-card { width: 205px; }
    .fixed-service-visual .floating-1 { left: 0; top: 0; }
    .fixed-service-visual .floating-2 { right: 0; top: 180px; }
    .fixed-service-visual .floating-3 { left: 28px; right: auto; bottom: 0; }
}

/* v6 final: clean hero visual, no broken/hidden images, no overlap */
.hero-section {
    grid-template-columns: minmax(420px, .9fr) minmax(620px, 1.1fr);
}
.fixed-service-visual {
    width: min(100%, 820px);
    height: 560px;
    display: grid;
    grid-template-columns: 1fr 250px;
    align-items: center;
    gap: 18px;
    overflow: visible;
}
.fixed-service-visual .glow {
    inset: 42px 80px 42px 60px;
}
.fixed-service-visual .developer-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1;
    width: 100%;
    max-width: 540px;
    height: 365px;
    margin-left: auto;
    z-index: 2;
}
.fixed-service-visual .screen-main {
    left: 30px;
    top: 54px;
    width: 270px;
    height: 210px;
}
.fixed-service-visual .screen-code {
    right: 26px;
    bottom: 48px;
    width: 250px;
    font-size: 13px;
}
.fixed-service-visual .floating-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    grid-column: 2;
    width: 100%;
    padding: 18px 18px;
    margin: 10px 0;
    border-radius: 20px;
    animation: softPulse 4.2s ease-in-out infinite;
    background: rgba(15, 23, 42, .9);
    backdrop-filter: blur(20px);
}
.fixed-service-visual .floating-1 { align-self: end; }
.fixed-service-visual .floating-2 { align-self: center; animation-delay: .45s; }
.fixed-service-visual .floating-3 { align-self: start; animation-delay: .9s; }
@keyframes softPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 18px 50px rgba(2,6,23,.35); }
    50% { transform: translateY(-6px); box-shadow: 0 24px 65px rgba(37,99,235,.20); }
}
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #0f172a;
}
.project-card a.project-image-link { display: block; }
.project-card .project-links a[href*="download"],
.download-link,
.hidden-download-link { display: none !important; }
@media (max-width: 1180px) {
    .hero-section { grid-template-columns: 1fr; }
    .fixed-service-visual {
        grid-template-columns: 1fr;
        height: auto;
        gap: 14px;
    }
    .fixed-service-visual .developer-card {
        margin: 0 auto;
        max-width: 680px;
    }
    .fixed-service-visual .floating-card {
        max-width: 680px;
        margin: 0 auto;
        display: block;
    }
}
@media (max-width: 680px) {
    .fixed-service-visual .developer-card {
        height: 330px;
    }
    .fixed-service-visual .screen-main {
        left: 20px;
        width: 250px;
        height: 180px;
    }
    .fixed-service-visual .screen-code {
        right: 18px;
        bottom: 28px;
        width: 230px;
        font-size: 12px;
    }
}


/* v7 final fix: balanced hero visual and real GP Care integration */
.hero-section {
    grid-template-columns: minmax(380px, .95fr) minmax(560px, 1.05fr) !important;
    gap: 34px !important;
    align-items: center !important;
    overflow: visible !important;
}
.hero-visual {
    min-height: 470px !important;
    overflow: visible !important;
    justify-content: flex-end !important;
}
.fixed-service-visual {
    width: 100% !important;
    max-width: 760px !important;
    height: 455px !important;
    display: grid !important;
    grid-template-columns: minmax(350px, 1fr) 245px !important;
    grid-template-rows: repeat(3, 1fr) !important;
    column-gap: 24px !important;
    row-gap: 16px !important;
    align-items: center !important;
    overflow: visible !important;
}
.fixed-service-visual .developer-card {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    width: 100% !important;
    max-width: 500px !important;
    height: 330px !important;
    margin: 0 !important;
    justify-self: end !important;
    align-self: center !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
}
.fixed-service-visual .screen-main {
    left: 26px !important;
    top: 50px !important;
    width: 250px !important;
    height: 190px !important;
}
.fixed-service-visual .screen-code {
    right: 22px !important;
    bottom: 42px !important;
    width: 235px !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
}
.fixed-service-visual .screen-code p { margin: 7px 0 !important; }
.fixed-service-visual .floating-card {
    grid-column: 2 !important;
    position: relative !important;
    inset: auto !important;
    width: 245px !important;
    margin: 0 !important;
    padding: 18px 18px !important;
    border-radius: 19px !important;
    align-self: center !important;
    justify-self: stretch !important;
    animation: softPulse 4.5s ease-in-out infinite !important;
}
.fixed-service-visual .floating-1 { grid-row: 1 !important; }
.fixed-service-visual .floating-2 { grid-row: 2 !important; }
.fixed-service-visual .floating-3 { grid-row: 3 !important; }
.fixed-service-visual .floating-card strong { font-size: 16px !important; }
.fixed-service-visual .floating-card span { font-size: 14px !important; }
.project-card { transition: transform .25s ease, border-color .25s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(96,165,250,.55); }
.project-card img { object-position: center; }
.project-card.clickable-project { cursor: pointer; }
.project-links a[href*="download"], .download-link, .hidden-download-link { display: none !important; }
@media (min-width: 1380px) {
    .fixed-service-visual { max-width: 820px !important; grid-template-columns: minmax(420px,1fr) 260px !important; }
    .fixed-service-visual .floating-card { width: 260px !important; }
    .fixed-service-visual .developer-card { max-width: 540px !important; height: 355px !important; }
}
@media (max-width: 1180px) {
    .hero-section { grid-template-columns: 1fr !important; }
    .hero-visual { justify-content: center !important; }
    .fixed-service-visual { max-width: 720px !important; grid-template-columns: 1fr !important; grid-template-rows: auto !important; height: auto !important; gap: 16px !important; }
    .fixed-service-visual .developer-card { grid-column: 1 !important; grid-row: auto !important; justify-self: center !important; max-width: 620px !important; }
    .fixed-service-visual .floating-card { grid-column: 1 !important; grid-row: auto !important; width: 100% !important; max-width: 620px !important; justify-self: center !important; }
}
@media (max-width: 680px) {
    .fixed-service-visual .developer-card { height: 315px !important; }
    .fixed-service-visual .screen-main { width: 230px !important; height: 170px !important; }
    .fixed-service-visual .screen-code { width: 215px !important; font-size: 11px !important; }
}


/* v9 proper hero fix: one clean hero card, no empty box behind code */
.fixed-service-visual .developer-card.clean-hero-card {
    background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
    border: 1px solid rgba(148,163,184,.22);
    padding: 22px;
    overflow: hidden;
}
.clean-hero-card .hero-window-bar {
    display:flex; gap:8px; margin-bottom:18px;
}
.clean-hero-card .hero-window-bar span {
    width:12px; height:12px; border-radius:999px; background:rgba(148,163,184,.45);
}
.hero-solution-board {
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap:16px;
    height:235px;
}
.solution-main, .solution-metrics span, .hero-code-strip {
    border:1px solid rgba(148,163,184,.18);
    background:rgba(2,6,23,.62);
    border-radius:18px;
}
.solution-main { padding:24px; }
.solution-main small { color:#60a5fa; font-weight:900; letter-spacing:1.5px; text-transform:uppercase; }
.solution-main h3 { margin:14px 0 10px; font-size:30px; line-height:1.05; }
.solution-main p { margin:0; color:var(--muted); line-height:1.55; }
.solution-metrics { display:grid; gap:12px; }
.solution-metrics span { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; color:var(--muted); font-weight:800; }
.solution-metrics b { color:#67e8f9; font-size:25px; }
.hero-code-strip { margin-top:16px; padding:14px; display:flex; gap:12px; justify-content:center; }
.hero-code-strip span { padding:10px 14px; border-radius:999px; background:rgba(37,99,235,.18); color:#bfdbfe; font-weight:900; font-size:14px; }
.fixed-service-visual .clean-hero-card .screen,
.fixed-service-visual .clean-hero-card .screen-main,
.fixed-service-visual .clean-hero-card .screen-code { display:none !important; }

/* v9: both real app cards are clickable */
.project-card.clickable-project { cursor:pointer; }
.project-card.clickable-project a { position:relative; z-index:5; }
.project-card.clickable-project:hover { transform: translateY(-6px); }

@media (max-width: 680px) {
    .hero-solution-board { grid-template-columns:1fr; height:auto; }
    .solution-main h3 { font-size:24px; }
    .hero-code-strip { flex-wrap:wrap; }
}


/* v12 final proper fix: Sydatrix brand, clean visible hero card, no cropped metrics */
.hero-section {
    min-height: auto !important;
    padding-bottom: 54px !important;
}
.hero-visual {
    min-height: 560px !important;
    padding: 22px 0 !important;
}
.fixed-service-visual {
    min-height: 520px !important;
    height: auto !important;
    align-items: center !important;
}
.fixed-service-visual .developer-card.clean-hero-card {
    height: auto !important;
    min-height: 430px !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}
.clean-hero-card .hero-window-bar {
    flex: 0 0 auto !important;
}
.hero-solution-board {
    height: auto !important;
    min-height: 280px !important;
    grid-template-columns: minmax(0, 1fr) minmax(170px, .75fr) !important;
    align-items: stretch !important;
}
.solution-main {
    min-height: 260px !important;
    overflow: visible !important;
}
.solution-main h3 {
    font-size: clamp(30px, 3.1vw, 44px) !important;
    line-height: 1.03 !important;
    margin-bottom: 18px !important;
}
.solution-main p {
    font-size: 17px !important;
}
.solution-metrics {
    min-width: 0 !important;
}
.solution-metrics span {
    min-height: 78px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-content: center !important;
}
.solution-metrics b {
    font-size: clamp(28px, 3vw, 38px) !important;
    margin-right: 4px !important;
}
.hero-code-strip {
    flex: 0 0 auto !important;
    margin-top: 18px !important;
    flex-wrap: wrap !important;
}

/* Keep service cards beside the visual on desktop and below on smaller screens */
@media (min-width: 1181px) {
    .fixed-service-visual {
        grid-template-columns: minmax(430px, 1fr) 260px !important;
        column-gap: 24px !important;
    }
    .fixed-service-visual .developer-card.clean-hero-card {
        max-width: 560px !important;
    }
    .fixed-service-visual .floating-card {
        width: 260px !important;
    }
}
@media (max-width: 1180px) {
    .hero-visual { min-height: auto !important; }
    .fixed-service-visual {
        min-height: auto !important;
        grid-template-columns: 1fr !important;
    }
    .fixed-service-visual .developer-card.clean-hero-card {
        width: 100% !important;
        max-width: 720px !important;
        min-height: auto !important;
    }
}
@media (max-width: 760px) {
    .hero-solution-board {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    .solution-main { min-height: auto !important; }
    .solution-metrics span { min-height: 68px !important; }
}

/* v12 Gadget Store video: make the newsletter video visible and playable */
.newsletter-video-wrap-fixed,
.newsletter-main-video {
    background: #111827 !important;
}
.newsletter-main-video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* v12: final clean portfolio hero layout — fully visible, no cropped metric cards */
.hero-section {
    grid-template-columns: minmax(380px, .95fr) minmax(560px, 1.05fr) !important;
    gap: 42px !important;
    align-items: center !important;
    padding-top: 34px !important;
    padding-bottom: 70px !important;
}
.hero-visual {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
}
.fixed-service-visual {
    max-width: 820px !important;
    min-height: 0 !important;
    height: auto !important;
    grid-template-columns: minmax(440px, 1fr) 260px !important;
    grid-template-rows: repeat(3, auto) !important;
    gap: 18px 24px !important;
    overflow: visible !important;
}
.fixed-service-visual .developer-card.clean-hero-card {
    grid-row: 1 / 4 !important;
    width: 100% !important;
    max-width: 575px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 22px !important;
    overflow: visible !important;
}
.hero-solution-board {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(160px, .72fr) !important;
    gap: 14px !important;
    min-height: 0 !important;
    height: auto !important;
}
.solution-main {
    min-height: 0 !important;
    padding: 22px !important;
}
.solution-main h3 {
    font-size: clamp(28px, 2.6vw, 38px) !important;
    line-height: 1.04 !important;
}
.solution-main p { font-size: 16px !important; }
.solution-metrics {
    display: grid !important;
    gap: 12px !important;
    min-width: 0 !important;
}
.solution-metrics span {
    min-height: 0 !important;
    padding: 15px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    flex-wrap: wrap !important;
}
.solution-metrics b {
    font-size: clamp(25px, 2.5vw, 34px) !important;
    line-height: 1 !important;
}
.hero-code-strip {
    margin-top: 14px !important;
    padding: 12px !important;
    flex-wrap: wrap !important;
}
.fixed-service-visual .floating-card {
    width: 260px !important;
    min-height: 120px !important;
}
@media (max-width: 1180px) {
    .hero-section { grid-template-columns: 1fr !important; }
    .fixed-service-visual { grid-template-columns: 1fr !important; max-width: 760px !important; }
    .fixed-service-visual .developer-card.clean-hero-card { grid-row: auto !important; max-width: 760px !important; }
    .fixed-service-visual .floating-card { width: 100% !important; max-width: 760px !important; min-height: 0 !important; }
}
@media (max-width: 720px) {
    .hero-solution-board { grid-template-columns: 1fr !important; }
    .hero-copy h1 { font-size: 42px !important; }
}

/* v13: requested portfolio fixes */
.logo-text-only {
    gap: 0 !important;
    font-size: 28px !important;
    letter-spacing: -0.8px;
}
.logo-text-only::before,
.logo-text-only span { display: none !important; }
button.top-button,
button.secondary-btn,
.footer-contact-button {
    border: 0;
    color: white;
    cursor: pointer;
    font: inherit;
}
button.secondary-btn {
    color: var(--text);
}
.footer-contact-button {
    display: inline-block;
    margin-top: 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 900;
}
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 20px;
}
.contact-modal.active { display: grid; }
.contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .78);
    backdrop-filter: blur(10px);
}
.contact-box {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(15,23,42,.98), rgba(2,6,23,.98));
    box-shadow: 0 34px 100px rgba(0,0,0,.55);
    padding: 30px;
}
.contact-box h2 {
    margin: 0 0 20px;
    font-size: 34px;
    letter-spacing: -1px;
}
.contact-box label {
    display: block;
    color: var(--muted);
    font-weight: 800;
    margin: 16px 0;
}
.contact-box input,
.contact-box textarea {
    width: 100%;
    margin-top: 8px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(2,6,23,.72);
    color: white;
    padding: 15px 16px;
    font: inherit;
    outline: none;
}
.contact-box input:focus,
.contact-box textarea:focus {
    border-color: rgba(56, 189, 248, .75);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .12);
}
.contact-x {
    position: absolute;
    right: 18px;
    top: 16px;
    border: 0;
    background: rgba(15,23,42,.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}
.contact-submit { width: 100%; margin-top: 10px; border: 0; cursor: pointer; }
.form-success {
    border: 1px solid rgba(34,197,94,.38);
    background: rgba(34,197,94,.12);
    color: #bbf7d0;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 800;
}
.cookie-pop {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 9998;
    max-width: 940px;
    margin: 0 auto;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 22px;
    background: rgba(15, 23, 42, .96);
    box-shadow: 0 24px 90px rgba(0,0,0,.45);
    padding: 18px 20px;
}
.cookie-pop.show { display: flex; }
.cookie-pop strong { font-size: 18px; }
.cookie-pop p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    background: rgba(2,6,23,.65);
    cursor: pointer;
    font-weight: 900;
}
.cookie-actions #cookieAccept {
    border: 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}
@media (max-width: 760px) {
    .cookie-pop { flex-direction: column; align-items: flex-start; }
    .cookie-actions { width: 100%; }
    .cookie-actions button { flex: 1; }
}


/* FINAL REAL FIX: no cropped right service text, visible contact send button, GP Care original image served */
html, body { max-width: 100%; overflow-x: hidden !important; }
.site-header, main, .footer { max-width: 1480px; width: min(1480px, calc(100vw - 48px)) !important; }
.hero-section {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
    gap: 34px !important;
    align-items: center !important;
    overflow: visible !important;
}
.hero-copy { min-width: 0 !important; }
.hero-copy h1 { max-width: 100% !important; }
.hero-visual { min-width: 0 !important; width: 100% !important; justify-content: center !important; overflow: visible !important; }
.fixed-service-visual {
    width: 100% !important;
    max-width: 760px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto !important;
    gap: 16px !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    align-items: stretch !important;
}
.fixed-service-visual .glow { inset: 20px 30px 40px 30px !important; }
.fixed-service-visual .developer-card.clean-hero-card {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}
.fixed-service-visual .floating-card,
.fixed-service-visual .floating-1,
.fixed-service-visual .floating-2,
.fixed-service-visual .floating-3 {
    grid-column: auto !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 150px !important;
    height: auto !important;
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    padding: 18px !important;
    overflow: visible !important;
    white-space: normal !important;
}
.fixed-service-visual .floating-card strong,
.fixed-service-visual .floating-card span {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: normal !important;
}
.fixed-service-visual .floating-card strong { font-size: 15px !important; line-height: 1.25 !important; }
.fixed-service-visual .floating-card span { font-size: 14px !important; line-height: 1.45 !important; }
.hero-solution-board { grid-template-columns: minmax(0, 1.05fr) minmax(145px, .65fr) !important; }
.solution-main h3 { font-size: clamp(28px, 2.5vw, 36px) !important; }
.solution-metrics b { font-size: clamp(25px, 2.3vw, 32px) !important; }
.solution-metrics span { padding: 14px !important; }

.contact-modal { align-items: center !important; overflow-y: auto !important; padding: 24px !important; }
.contact-box {
    max-height: calc(100vh - 56px) !important;
    overflow-y: auto !important;
    width: min(560px, calc(100vw - 32px)) !important;
    padding: 26px !important;
}
.contact-box h2 { font-size: clamp(26px, 4vw, 38px) !important; margin-bottom: 14px !important; }
.contact-box label { margin: 10px 0 !important; }
.contact-box input, .contact-box textarea { padding: 13px 15px !important; }
.contact-box textarea { min-height: 120px !important; max-height: 180px !important; }
.contact-submit {
    display: block !important;
    width: 100% !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    padding: 16px 20px !important;
    text-align: center !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 3 !important;
}

@media (max-width: 1280px) {
    .hero-section { grid-template-columns: 1fr !important; }
    .fixed-service-visual { max-width: 900px !important; }
}
@media (max-width: 760px) {
    .site-header, main, .footer { width: min(100vw - 28px, 1480px) !important; }
    .fixed-service-visual { grid-template-columns: 1fr !important; }
    .fixed-service-visual .floating-card,
    .fixed-service-visual .floating-1,
    .fixed-service-visual .floating-2,
    .fixed-service-visual .floating-3 { grid-row: auto !important; min-height: 0 !important; }
    .hero-solution-board { grid-template-columns: 1fr !important; }
}
