﻿/* START: Base and design tokens */
:root {
  color-scheme: light;
  --navy: #121d40;
  --blue: #304ed0;
  --lavender: #ebe8fc;
  --ink: #192440;
  --muted: #526078;
  --line: #dbe0ee;
  --header-height: 240px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-height); }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 4px; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a45200; outline-offset: 5px; }
.wrapper { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 64px; scroll-margin-top: 24px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); margin: 18px 0 24px; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 12px 0 20px; }
h3 { font-size: 1.3rem; margin: 20px 0 14px; }
p { margin: 0 0 16px; }
.eyebrow { color: var(--blue); font-size: .74rem; font-weight: 750; letter-spacing: .13em; }
.section-intro { max-width: 660px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 20px; background: var(--blue); color: white; border: 1px solid transparent; border-radius: 7px; font-weight: 650; text-decoration: none; text-align: center; }
a.button:hover { background: #233ca7; }
.button:disabled { background: #e6e9f2; color: #4a5470; border-color: #c7cede; cursor: not-allowed; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; background: #fff; padding: 12px; }
.skip-link:focus { top: 12px; }
/* END: Base and design tokens */
/* START: Header */
.site-header { position: sticky; top: 0; z-index: 10; background: #101f49; }
.header-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding-block: 6px; }
.brand { display: block; flex: 0 0 196px; min-width: 0; border-radius: 4px; }
.brand img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 128; object-fit: contain; }
.site-header .desktop-nav { display: none; }
.site-header nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; color: #fff; font-size: .9rem; text-decoration: none; text-align: center; padding: 6px 4px; border-radius: 5px; }
.site-header nav a:hover { color: #fff; background: #213663; text-decoration: underline; text-underline-offset: 4px; }
.site-header :focus-visible { outline: 3px solid #bce5ff; outline-offset: 3px; }
.site-header nav .nav-cta { grid-column: 1 / -1; background: var(--blue); padding: 10px 8px; font-weight: 650; }
.site-header nav .nav-cta:hover { background: #233ca7; }
.mobile-navigation { padding: 0; border: 0; flex-shrink: 0; }
.mobile-navigation summary { min-height: 44px; padding: 8px 4px; color: #fff; cursor: pointer; border-radius: 5px; font-size: .9rem; white-space: nowrap; }
.mobile-navigation summary:hover { background: #213663; }
.mobile-navigation nav { position: absolute; top: 100%; inset-inline: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; background: #101f49; border-top: 1px solid #526078; box-shadow: 0 12px 20px #101f4933; }
@media (min-width: 960px) {
  .header-inner { gap: 24px; padding-block: 8px; }
  .brand { flex-basis: 260px; }
  .mobile-navigation { display: none; }
  .site-header .desktop-nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .site-header nav .nav-cta { padding-inline: 16px; }
}
/* END: Header */
/* START: Hero */
.hero.section { padding-block: 0; background: #101f49; }
.hero-stage { position: relative; isolation: isolate; display: flex; align-items: flex-start; min-height: 640px; padding-block: 48px; color: #fff; }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,24,58,.97), rgba(10,24,58,.86) 40%, rgba(10,24,58,.8)); }
.hero-copy { min-width: 0; position: relative; }
.hero-visual { position: absolute; inset: 0; display: block; z-index: -2; overflow: hidden; background: #101f49; }
/* Scale the former cover footprint to about 78%; feather into the navy base. */
.hero-visual img { position: absolute; top: 50%; left: 75%; display: block; width: max(78%, 748.8px); max-width: none; height: auto; object-fit: contain; transform: translate(-75%, -50%); mask-image: linear-gradient(90deg, transparent, #000 18%), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect; }
@media (max-width: 359px) {
  .hero-visual img { width: max(78%, 837.6px); }
}
/* Reserve portrait space within the same full-bleed background on narrow screens. */
@media (max-width: 639px) {
  .hero-stage { min-height: 0; padding: 32px 0 304px; }
  .hero-visual img { top: auto; bottom: 0; left: auto; right: 0; width: 480px; transform: none; mask-image: linear-gradient(180deg, transparent, #000 16%); mask-composite: add; }
  .hero-stage::before { background: linear-gradient(180deg, #101f49 calc(100% - 304px), rgba(10,24,58,.15) calc(100% - 240px), rgba(10,24,58,.08)); }
}
.hero-stage h1 { color: #fff; font-size: clamp(2.125rem, 4.2vw, 3.5rem); line-height: 1.1; margin: 14px 0 20px; }
.hero-stage .actions { margin-top: 26px; }
/* START: Hero benefits */
.hero-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 420px; margin: 36px 0 0; padding: 0; list-style: none; }
.hero-benefits li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; color: #fff; text-align: center; font-size: .8125rem; line-height: 1.4; }
.hero-benefits svg { display: block; flex: none; fill: none; stroke: #7897ff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-benefits svg g { stroke: #fff; }
@media (min-width: 960px) {
  .hero-benefits { margin-top: 64px; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .hero-benefits { max-width: 272px; }
}
/* END: Hero benefits */
.hero-stage h1 span { color: #7897ff; }
.hero-stage .eyebrow { color: #d6d1ff; }
.hero-stage .lead { color: #f0f2ff; }
.hero-stage .text-link { color: #fff; }
.hero-stage :focus-visible { outline-color: #bce5ff; }
.hero-note-area { padding: 24px 0 32px; background: var(--lavender); }
h1 span { color: var(--blue); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.text-link { font-weight: 650; }
.hero-note { grid-column: 1 / -1; padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid #d5d8ef; border-radius: 12px; box-shadow: 0 16px 40px #1924400a; }
.hero-note h2 { font-size: 1.8rem; margin: 8px 0 0; }
.hero-note ul { padding-left: 20px; margin-block: 24px; }
.hero-note li { padding-block: 9px; border-bottom: 1px solid var(--line); }
.hero-note > p:last-child { color: var(--muted); font-size: .9rem; margin: 0; }
@media (min-width: 640px) {
  .hero-copy { max-width: min(52%, 620px); }
  .hero-stage::before { background: linear-gradient(90deg, rgba(10,24,58,.97), rgba(10,24,58,.94) 52%, rgba(10,24,58,.15) 68%, transparent); }
  .hero-visual img { left: 100%; transform: translate(-100%, -50%); }
  .hero-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 16px 32px; }
  .hero-note ul { margin: 0; }
  .hero-note > p:last-child { grid-column: 1 / -1; }
}
/* END: Hero */
/* START: Services */
.service-grid { display: grid; gap: 20px; margin-top: 32px; }
.service-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; }
.card-number { color: var(--blue); font-size: .85rem; font-weight: 700; }
.service-card p, .service-card ul { color: var(--muted); }
.service-card .service-benefit { color: var(--ink); font-weight: 650; line-height: 1.5; margin-bottom: 12px; }
.service-card li { margin-bottom: 8px; }
.service-card ul { padding-left: 20px; margin: 4px 0 28px; }
.service-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-size: .9rem; font-weight: 650; }
.scope-note { font-size: .85rem; color: var(--muted); margin: 22px 0 0; }
/* END: Services */
/* START: Pricing */
.pricing-section { background: #f6f7ff; }
.pricing-grid { display: grid; gap: 20px; margin-top: 32px; }
.pricing-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; }
.pricing-card[aria-labelledby="sales-package-title"] { border-color: #a4ace8; background: #fbfaff; box-shadow: 0 4px 16px #1924400a; }
.pricing-card h3 { margin-top: 0; }
.package-price { color: var(--blue); font-size: 2.6rem; line-height: 1.2; font-weight: 750; letter-spacing: -.04em; margin-bottom: 6px; }
.package-fee { color: var(--muted); font-size: .9rem; }
.package-summary { color: var(--ink); font-weight: 650; line-height: 1.5; margin: 4px 0 20px; }
.pricing-card ul { padding-left: 20px; color: var(--muted); margin: 8px 0 28px; }
.pricing-card li { margin-bottom: 8px; }
.pricing-card .button { margin-top: auto; }
.pricing-terms { padding: 24px; margin-top: 24px; border: 1px solid #d5d8ef; border-radius: 8px; background: var(--lavender); }
.pricing-terms h3 { margin-top: 0; }
.pricing-terms ul { padding-left: 20px; }
.pricing-terms li { margin-bottom: 10px; }
.pricing-terms p { margin-bottom: 0; overflow-wrap: anywhere; }
@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* END: Pricing */
/* START: Our Work */
.portfolio-grid { display: grid; gap: 24px; margin-top: 32px; }
.portfolio-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.portfolio-card > img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; border-bottom: 1px solid var(--line); }
.portfolio-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(20px, 3vw, 28px); overflow-wrap: anywhere; }
.project-category { color: var(--blue); font-size: .8rem; font-weight: 650; margin-bottom: 8px; }
.portfolio-content h3 { margin: 0 0 16px; line-height: 1.35; letter-spacing: -.02em; }
.portfolio-content > p:not(.project-category):not(.project-status) { color: var(--muted); }
.project-status { color: var(--ink); background: var(--lavender); padding: 4px 10px; border-radius: 4px; font-size: .85rem; font-weight: 650; }
.portfolio-content a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; font-weight: 650; }
@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* END: Our Work */
/* START: About and Why Choose QosmioTech */
.about-section { background: var(--lavender); }
.about-grid { display: grid; gap: 16px 48px; }
.about-grid h2 { margin-bottom: 0; }
.about-copy { max-width: 720px; color: var(--ink); }
.about-copy p:last-child { margin-bottom: 0; }
.trust-grid { display: grid; gap: 20px; margin-top: 32px; }
.trust-card { min-width: 0; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 8px; background: #fff; }
.trust-card h3 { margin: 0 0 16px; font-size: 1.2rem; line-height: 1.4; letter-spacing: -.02em; }
.trust-card p { color: var(--muted); margin-bottom: 0; }
@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* END: About and Why Choose QosmioTech */
/* START: How It Works */
.process-section { background: var(--navy); color: #fff; }
.process-section .eyebrow { color: #c5bcff; }
.process-grid { display: grid; gap: 24px; list-style: none; padding: 0; margin: 36px 0 0; counter-reset: steps; }
.process-grid li { border-top: 1px solid #526080; padding-top: 20px; counter-increment: steps; }
.process-grid li::before { content: "0" counter(steps); color: #c5bcff; font-size: .85rem; }
.process-grid p { color: #cbd3e5; font-size: .95rem; }
/* END: How It Works */
/* START: FAQ */
.faq-grid { display: grid; gap: 24px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 650; padding-right: 8px; }
details p { color: var(--muted); margin: 16px 0 0; }
/* END: FAQ */
/* START: Contact */
.contact-section { background: var(--lavender); }
.contact-grid { display: grid; gap: 24px; align-items: center; }
.contact-grid > div > p:not(.eyebrow) { max-width: 590px; }
.contact-panel { background: #fff; padding: 28px; border-radius: 10px; border: 1px solid #d5d8ef; }
.contact-panel h3 { margin-top: 0; }
.contact-panel p { color: var(--muted); }
.contact-panel .button { width: 100%; }
/* END: Contact */
/* START: Enquiry form */
.contact-note { margin: 18px 0 0; font-size: .9rem; }
.enquiry-section { background: #f6f7ff; }
.enquiry-form { background: #fff; border: 1px solid #d5d8ef; border-radius: 10px; padding: clamp(20px, 4vw, 40px); scroll-margin-top: 24px; }
.enquiry-form > p { max-width: 750px; }
.enquiry-form fieldset { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.enquiry-form legend { font-weight: 700; margin-bottom: 16px; }
.form-grid { display: grid; gap: 20px; }
.field { min-width: 0; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #7c89a3; border-radius: 5px; padding: 12px; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #a82035; outline: 1px solid #a82035; }
.field-error { color: #a82035; font-size: .9rem; margin: 6px 0 0; }
.field-error:empty { display: none; }
.field-help { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.consent-row { display: flex; align-items: flex-start; gap: 12px; }
.consent-row input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 4px; accent-color: var(--blue); }
.consent-row label { margin: 0; }
.button-secondary { color: var(--blue); background: #fff; border-color: var(--blue); }
.button:not(:disabled) { cursor: pointer; }
.form-status { font-weight: 600; overflow-wrap: anywhere; }
.security-check { min-height: 70px; margin-block: 16px; max-width: 100%; }
#enquiry-security { max-width: 100%; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: 1 / -1; }
}
/* END: Enquiry form */
/* START: Footer */
.site-footer { background: #0d1530; color: #cbd3e5; padding-block: 36px; font-size: .85rem; }
.footer-grid { display: grid; gap: 20px; }
.footer-brand { font-size: 1.25rem; color: #fff; font-weight: 700; }
.site-footer p:last-child { margin-bottom: 0; }
/* END: Footer */
/* START: Responsive layouts */
@media (min-width: 640px) {
  .wrapper { width: min(1160px, calc(100% - 64px)); }
  .section { padding-block: 80px; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { text-align: right; }
}
@media (min-width: 960px) {
  .hero-copy { max-width: min(54%, 620px); }
  .hero-stage { min-height: 640px; padding-block: 64px; }
  .hero-visual img { width: max(78%, 842.4px); }
  .hero-stage::before { background: linear-gradient(90deg, rgba(10,24,58,.97), rgba(10,24,58,.94) 55%, rgba(10,24,58,.08) 72%, transparent); }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 72px; }
}
/* END: Responsive layouts */
/* START: Optional card reveals; no pending/hidden content state */
@keyframes card-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal-running { animation: card-reveal 800ms ease-out var(--reveal-delay, 0ms) both; }
  .scroll-reveal-running:focus-within { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal-running { animation: none; }
}
/* END: Optional card reveals */
