@import url("./typography.css");

/* Corporate product design. Isolated from product and legal page styles. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {

  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  --primary: #0ea6ff;
  --primary-dark: #006ba8;
  --ink: #1a1a1a;
  --muted: #606060;
  --paper: #fff;
  --border: #e1e7ed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: var(--text-large); font-weight: 400; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 6px; }
::selection { background: #77bbe3; color: #001724; }
.container { width: min(calc(100% - 112px), 1280px); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 20px; padding: 15px; background: white; color: black; z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* White corporate masthead, readable throughout the page. */
.site-header { position: sticky; top: 0; z-index: 30; background: #fffffff5; border-bottom: 1px solid #e9e9e9; backdrop-filter: blur(14px); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: var(--title-medium); font-weight: 750; letter-spacing: -1.2px; }
.brand > span { margin-left: -10px; color: var(--primary-dark); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { padding-block: 14px; font-size: var(--text-medium); color: #484848; }
.main-nav a:hover { color: var(--primary-dark); }
.main-nav .nav-contact { margin-left: 35px; font-size: var(--text-medium); font-weight: 700; color: #222; }
.nav-contact span { margin-left: 16px; color: var(--primary-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #222; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin-block: 7px; background: currentColor; }

/* Data illustration is a local, lightweight SVG, not an external dependency. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #070a0c; color: white; }
.hero-art { pointer-events: none; transform-origin: 75% 50%; position: absolute; inset: 0; z-index: -2; background: url('../images/data-field.svg') right center / auto 112% no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #070a0c 0%, #070a0cef 29%, #070a0c90 47%, transparent 70%); }
.hero-grid { min-height: 580px; display: flex; align-items: center; padding-block: 90px; }
.hero-copy { max-width: 660px; }
.eyebrow { margin-bottom: 20px; font-size: var(--text-large); line-height: 1.6; font-weight: 700; letter-spacing: .6px; }
.hero .eyebrow { color: #76bfe9; }
.status-dot { display: none; }
h1 {margin-bottom: 24px;font-size: var(--title-hero);line-height: 1.08;letter-spacing: -2px;font-weight: 700;}
.hero-description { max-width: 445px; color: #cdd4d8; font-size: var(--text-large); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 48px; padding: 14px 23px; background: var(--primary); color: #000f18; font-size: var(--text-medium); font-weight: 700; transition: background .2s; }
.btn:hover { background: #45baff; }
.text-link { display: inline-flex; align-items: center; gap: 15px; font-size: var(--text-medium); font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; padding-block: 25px 30px; border-top: 1px solid #ffffff24; }
.hero-bottom a { position: relative; padding: 0 26px 0 0; font-size: var(--text-medium); line-height: 1.5; }
.hero-bottom a span { display: block; margin-bottom: 8px; font-size: var(--text-small); color: #98a6ae; }
.hero-bottom b { position: absolute; right: 0; bottom: 2px; color: #409ed4; }
.hero-bottom a:hover { color: #77bbe3; }

/* Product images and concise information follow a clear editorial hierarchy. */
.section { padding: 88px 0; }
h2 { font-size: var(--title-large); line-height: 1.2; letter-spacing: -1.1px; font-weight: 700; margin-bottom: 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.section-heading .eyebrow, .about-section .eyebrow, .process-section .eyebrow { color: var(--primary-dark); }
.section-heading > p { color: var(--muted); font-size: var(--text-medium); line-height: 1.8; margin-bottom: 0; }
.products-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.product-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 40px; min-width: 0; position: relative; }
.product-card + .product-card { padding-top: 40px; border-top: 1px solid var(--border); }
.card-topline { display: none; }
.product-visual { position: relative; height: 310px; overflow: hidden; background: #0d1418; border-radius: 8px; }
.finance-visual {background: radial-gradient(ellipse at 50% 85%, #070a0c 0%, #000f18 45%, #000 85%);}
.product-visual .project-icon { position: absolute; top: 12px; left: 12px; z-index: 2; width: 40px; height: 40px; object-fit: cover; border-radius: 10px; box-shadow: 0 3px 10px #0005; pointer-events: none; }
.project-banner img:not(.project-icon) { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .45s ease; }
.mesh-feature .project-banner { display: grid; place-items: center; padding: 24px; background: transparent; }
.mesh-feature .project-banner img:not(.project-icon) { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; border-radius: 6px; box-shadow: 0 12px 28px #0006; }
.machine-feature .project-banner { height: auto; background: transparent; overflow: visible; }
.machine-feature .project-banner img:not(.project-icon) { width: 100%; height: auto; border-radius: 8px; }
.sound-feature .project-banner { height: auto; background: #090d10; border: 1px solid #c3f56830; }
.sound-feature .project-banner img:not(.project-icon) { display: block; width: 100%; height: auto; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-banner img:not(.project-icon):hover { transform: scale(1.05); }
}
.phone { width: 175px; margin-top: 25px; border: 5px solid #2a3236; border-radius: 27px; overflow: hidden; transform: rotate(9deg); box-shadow: 20px 25px 45px #0e1d2633; }
.phone img { width: 100%; }
.finance-visual .phone { position: absolute; top: 14%; left: auto; right: calc(50% + 5px); width: 42%; max-width: 190px; margin: 0; background: #000; transform: none; }
.finance-visual .phone-secondary { top: auto; bottom: 14%; left: calc(50% + 5px); right: auto; }
.visual-label { position: absolute; left: 25px; bottom: 25px; padding: 10px 14px; border-radius: 4px; background: #fff; color: #213947; font-size: var(--text-small); box-shadow: 0 4px 20px #0001; }
.machine-visual { padding: 30px; background: radial-gradient(ellipse at top right, #193c5166, transparent 70%), #0d1316; }
.chart-label, .chart-footer { display: flex; justify-content: space-between; gap: 15px; color: #a4b9c5; font: var(--text-small) monospace; letter-spacing: 1px; }
.machine-visual svg { display: block; width: 100%; height: 175px; margin: 16px 0; }
.machine-visual small { display: block; color: #a8b7c0; font-size: var(--text-small); margin-top: 17px; }
.product-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 0; }
.product-copy .eyebrow { font-size: var(--text-small); color: var(--primary-dark); margin-bottom: 12px; }
.product-copy h3 { font-size: var(--title-medium); line-height: 1.2; letter-spacing: -.7px; margin-bottom: 16px; }
.product-copy h3 br { display: none; }
.product-copy > p:not(.eyebrow) { color: var(--muted); font-size: var(--text-large); line-height: 1.8; max-width: 510px; margin-bottom: 22px; }
.product-copy h3.project-title {font-size: var(--title-medium);line-height: 1.4;letter-spacing: -.3px;font-weight: 800;color: #000;margin-bottom: 18px;overflow-wrap: anywhere;}
.project-heading .project-subtitle { color: var(--ink); font-size: var(--text-large); font-weight: 700; }
.project-separator { color: var(--muted); font-weight: 400; margin-inline: 5px; }
.technology-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.technology-badge { padding: 6px 12px; border: 1px solid; border-radius: 8px; font-size: var(--text-small); line-height: 1.5; font-weight: 700; }
.badge-flutter { color: #075985; background: #e0f2fe; border-color: #a5d9f5; }
.badge-android { color: #166534; background: #e8f7ed; border-color: #b7e3c5; }
.badge-csharp { color: #6b21a8; background: #f3e8ff; border-color: #dcc0f5; }
.badge-sql { color: #92400e; background: #fff4db; border-color: #f1d49a; }
.badge-api { color: #115e59; background: #e0f5f1; border-color: #a7dcd3; }
.product-link { align-self: flex-end; min-height: 44px; margin-top: auto; padding-block: 8px; }
.product-link span { color: var(--primary-dark); }
.product-features { margin: 0 0 22px; padding-left: 20px; color: var(--muted); font-size: var(--text-large); line-height: 1.8; }
.product-features li::marker { color: var(--primary-dark); }

/* A blue-accented company story and a light research gallery. */
.about-section { background: #eef1f3; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-grid h2 { font-size: var(--title-large); }
.about-grid h2 span { color: #306686; }
.about-copy p { font-size: var(--text-medium); line-height: 1.9; color: var(--muted); }
.about-copy .lead { font-size: var(--title-medium); line-height: 1.6; color: #22292d; }
.principles { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 30px; }
.principles > span { color: #2f5d78; font-size: var(--text-small); }
.principles strong { display: block; font-size: var(--text-small); font-weight: 600; color: #445057; margin-top: 8px; }
.lab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.lab-card { position: relative; min-width: 0; }
.lab-card::before { content: ""; display: block; height: 155px; margin-bottom: 23px; border-radius: 7px; background: repeating-linear-gradient(65deg, transparent 0 18px, #5698bf55 19px 20px, transparent 21px 40px), radial-gradient(ellipse at center, #29536b, #0b141a); }
.lab-card:nth-child(2)::before { background: repeating-radial-gradient(ellipse at 15% 90%, #1c2930 0 12px, #5595ba77 13px 14px, #15222a 15px 25px); }
.lab-card:nth-child(3)::before { background: repeating-linear-gradient(135deg, transparent 0 34px, #b49b6255 35px 37px, transparent 38px 65px), linear-gradient(45deg, #221e15, #736646); }
.lab-card:nth-child(4)::before { background: radial-gradient(circle at 35% 50%, #68a7cb66 0 12%, transparent 12.5%), radial-gradient(circle at 65% 50%, #68a7cb44 0 12%, transparent 12.5%), linear-gradient(135deg, #17242c, #3d5461); }
.lab-category { color: #5b676e; font-size: var(--text-small); letter-spacing: .8px; }
.lab-card h3 { font-size: var(--title-medium); line-height: 1.2; margin: 12px 0; letter-spacing: -.5px; }
.lab-card p { font-size: var(--text-medium); line-height: 1.8; color: var(--muted); }
.lab-card h3.lab-project-title { color: #000; font-size: var(--title-medium); line-height: 1.15; font-weight: 800; letter-spacing: -.7px; margin: 0 0 14px; }
.lab-card p.lab-project-subtitle { color: var(--ink); font-size: var(--text-large); line-height: 1.45; font-weight: 600; margin-bottom: 12px; }
.archive-label {display: block;font-size: var(--text-small);color: #57656d;margin-top: 20px;}
.process-section { background: #f5f5f5; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 45px; }
.steps-grid article { border-top: 3px solid var(--primary); padding-top: 20px; }
.steps-grid article > span { color: #5a6c76; font-size: var(--text-medium); }
.steps-grid h3 { font-size: var(--title-medium); margin: 20px 0 12px; }
.steps-grid p { font-size: var(--text-medium); line-height: 1.8; color: var(--muted); }
.contact-section { padding: 75px 0; background: #0c1216; color: white; }
.contact-wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-wrap .eyebrow { color: #66aed8; }
.contact-wrap h2 { font-size: var(--title-large); }
.contact-wrap p:not(.eyebrow) { font-size: var(--text-medium); color: #b2bfc6; line-height: 1.8; margin: 20px 0 0; }
.contact-wrap .btn { flex-shrink: 0; }
.site-footer { background: #fff; padding: 40px 0; }
.footer-top { display: flex; align-items: center; gap: 35px; margin-bottom: 30px; }
.footer-top p { color: #666; font-size: var(--text-small); margin: 0; }
.footer-top > .text-link { margin-left: auto; }
.footer-bottom {display: flex;flex-wrap: wrap;justify-content: space-between;gap: 20px;padding-top: 25px;border-top: 1px solid #e6e6e6;color: #676767;font-size: var(--text-medium);line-height: 1.7;}
.footer-bottom p { margin: 0; }
.footer-origin { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.footer-origin img { width: 21px; height: 15px; flex-shrink: 0; border-radius: 2px; }
.footer-bottom nav { display: flex; gap: 25px; }
.footer-bottom a:hover { color: var(--primary-dark); }

@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .main-nav { gap: 23px; }
  .main-nav .nav-contact { margin-left: 0; }
  .hero-art { background-position: 150% center; }
  .hero-copy { max-width: 570px; }
  .hero-grid { min-height: 560px; }
  .about-grid { gap: 45px; }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .nav-wrap { min-height: 70px; flex-wrap: wrap; gap: 0; padding-block: 12px; }
  .brand { font-size: var(--title-medium); }
  .nav-toggle:not([hidden]) { display: block; }
  .main-nav { width: 100%; flex-wrap: wrap; gap: 15px; padding: 20px 0; }
  .main-nav[data-collapsible="true"] { display: none; }
  .main-nav[data-collapsible="true"].is-open { display: flex; flex-direction: column; align-items: stretch; }
  .main-nav.is-open a { padding: 12px; }
  .hero-grid { min-height: 670px; padding: 60px 0 260px; align-items: flex-start; }
  .hero-copy { max-width: 100%; }
  .hero-art { background-size: 630px auto; background-position: center 205px; opacity: .8; }
  .hero::after { background: linear-gradient(180deg, #070a0c 0%, #070a0ced 35%, #070a0c44 70%, #070a0c 100%); }
  h1 { font-size: var(--title-hero); letter-spacing: -1.3px; }
  .hero-description { font-size: var(--text-large); }
  .hero-actions { gap: 22px; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 0; }
  .hero-bottom a { padding: 18px 28px 18px 0; border-bottom: 1px solid #ffffff20; font-size: var(--text-medium); }
  .hero-bottom a span { margin-bottom: 5px; font-size: var(--text-small); }
  .hero-bottom b { bottom: 23px; }
  .section { padding-block: 65px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
  h2 { font-size: var(--title-large); }
  .section-heading > p br { display: none; }
  .products-grid, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 45px; }
  .product-card { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .product-visual { height: 285px; }
  .product-copy { padding-top: 0; }
  .product-copy h3 { font-size: var(--title-medium); }
  .machine-visual { padding: 24px; }
  .machine-visual svg { height: 155px; }
  .chart-label { font-size: var(--text-small); }
  .chart-footer { font-size: var(--text-small); letter-spacing: 0; }
  .lab-grid { gap: 30px 20px; }
  .lab-card::before { height: 125px; }
  .lab-card h3 { font-size: var(--title-medium); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .contact-wrap { flex-direction: column; align-items: flex-start; gap: 30px; }
  .contact-wrap h2 { font-size: var(--title-large); }
  .footer-top { flex-wrap: wrap; gap: 20px; }
  .footer-top p { width: 100%; order: 2; }
  .footer-top > .text-link { font-size: var(--text-small); }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 400px) {
  .lab-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-card::before { height: 160px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-grid { padding-bottom: 230px; }
  .hero-art { background-position: center 310px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
