:root {
  --color-primary: #071a2f;
  --color-primary-soft: #102a44;
  --color-brand: #1f7ae0;
  --color-secondary: #0e7490;
  --color-accent: #22d3ee;
  --color-bg: #f3f6fa;
  --color-surface: #ffffff;
  --color-text: #102033;
  --color-muted: #5b6472;
  --color-border: #dbe5ef;
  --shadow-sm: 0 12px 30px rgba(7, 26, 47, 0.08);
  --shadow-lg: 0 25px 65px rgba(7, 26, 47, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; color: var(--color-text); background: var(--color-surface); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.65; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--color-primary); line-height: 1.15; letter-spacing: -0.025em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(2.55rem, 6vw, 4.9rem); }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { margin-bottom: 12px; font-size: 1.25rem; }
p { color: var(--color-muted); }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; color: white; background: var(--color-primary); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }

.site-header { position: sticky; z-index: 100; top: 0; min-height: var(--header-height); background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid rgba(219, 229, 239, 0.85); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: var(--header-height); align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; line-height: 1.15; }
.brand-avatar { width: 58px; height: 58px; flex: 0 0 58px; object-fit: cover; border-radius: 50%; }
.brand-copy { display: flex; min-width: 0; flex-direction: column; }
.brand-name { color: var(--color-primary); font-size: 1.08rem; font-weight: 800; }
.brand-detail { margin-top: 4px; color: var(--color-muted); font-size: 0.82rem; }
.main-navigation { display: flex; align-items: center; gap: 24px; }
.main-navigation > a:not(.button) { position: relative; color: var(--color-text); font-size: 0.91rem; font-weight: 700; text-decoration: none; }
.main-navigation > a:not(.button)::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--color-brand); content: ""; transform: scaleX(0); transition: transform 180ms ease; }
.main-navigation > a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--color-primary); transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 22px; color: white; background: var(--color-brand); border: 2px solid var(--color-brand); border-radius: 9px; box-shadow: 0 8px 20px rgba(31, 122, 224, 0.2); font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { background: #126ad0; box-shadow: 0 12px 28px rgba(31, 122, 224, 0.28); transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 9px 16px; font-size: 0.9rem; }
.button-secondary { color: var(--color-brand); background: transparent; box-shadow: none; }
.button-secondary:hover { color: white; background: var(--color-brand); }
.button-light { color: var(--color-primary); background: white; border-color: white; box-shadow: var(--shadow-sm); }
.button-light:hover { color: var(--color-primary); background: #eafcff; }
.button-ghost-light { color: white; background: transparent; border-color: rgba(255, 255, 255, 0.55); box-shadow: none; }
.button-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button-row.centered { justify-content: center; }

.hero { position: relative; overflow: hidden; padding: 100px 0 110px; background: radial-gradient(circle at 88% 14%, rgba(34, 211, 238, 0.15), transparent 26%), linear-gradient(135deg, #f8fbff 0%, #f3f6fa 58%, #ebf9fc 100%); }
.hero::before { position: absolute; top: -220px; right: -220px; width: 620px; height: 620px; border: 1px solid rgba(14, 116, 144, 0.15); border-radius: 50%; content: ""; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr); align-items: center; gap: 74px; }
.eyebrow { margin-bottom: 16px; color: var(--color-brand); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow-light { color: #8debf8; }
.hero-lead { max-width: 690px; margin-bottom: 30px; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.trust-note { margin: 22px 0 0; color: var(--color-muted); font-size: 0.92rem; }
.trust-note span { display: inline-grid; width: 24px; height: 24px; margin-right: 8px; place-items: center; color: #047857; background: #d1fae5; border-radius: 50%; font-weight: 900; }
.hero-visual { position: relative; min-height: 470px; }
.dashboard-card { position: absolute; background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(219, 229, 239, 0.85); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.dashboard-main { top: 45px; right: 16px; width: min(100%, 390px); padding: 34px; }
.dashboard-kicker { display: block; margin-bottom: 12px; color: var(--color-secondary); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.dashboard-main strong { display: block; max-width: 260px; color: var(--color-primary); font-size: 1.65rem; line-height: 1.2; }
.dashboard-bars { display: flex; height: 95px; align-items: end; gap: 14px; margin-top: 30px; padding: 0 10px 8px; border-bottom: 1px solid var(--color-border); }
.dashboard-bars span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(var(--color-accent), var(--color-secondary)); }
.dashboard-bars span:nth-child(1) { height: 42%; } .dashboard-bars span:nth-child(2) { height: 65%; } .dashboard-bars span:nth-child(3) { height: 54%; } .dashboard-bars span:nth-child(4) { height: 88%; }
.dashboard-stat { display: flex; z-index: 2; width: 175px; padding: 20px; flex-direction: column; }
.dashboard-stat strong { color: var(--color-brand); font-size: 1.65rem; }
.dashboard-stat span { color: var(--color-muted); font-size: 0.82rem; }
.stat-one { top: 0; left: 0; } .stat-two { right: 0; bottom: 65px; }
.dashboard-tech { position: absolute; bottom: 20px; left: 12px; padding: 13px 18px; color: white; background: var(--color-primary); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 0.78rem; font-weight: 800; }

.section-heading { max-width: 730px; margin-bottom: 46px; }
.section-heading-wide { max-width: 900px; }
.section-heading > p:last-child { margin-bottom: 0; font-size: 1.08rem; }
.trust-section, .technology-section { background: var(--color-surface); }
.card-grid { display: grid; gap: 24px; }
.three-columns { grid-template-columns: repeat(3, 1fr); }
.feature-card, .tech-card { padding: 30px; background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.feature-card:hover, .tech-card:hover { border-color: rgba(31, 122, 224, 0.45); box-shadow: 0 18px 40px rgba(7, 26, 47, 0.12); transform: translateY(-5px); }
.feature-card p, .tech-card p { margin-bottom: 0; }
.icon-box, .tech-card > span { display: inline-grid; width: 50px; height: 50px; margin-bottom: 24px; place-items: center; color: var(--color-brand); background: #e9f3ff; border-radius: 12px; font-weight: 900; }

.projects-section { background: var(--color-bg); }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-button { padding: 9px 15px; color: var(--color-primary); background: white; border: 1px solid var(--color-border); border-radius: 999px; cursor: pointer; font-size: 0.9rem; font-weight: 750; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.filter-button:hover, .filter-button.is-active { color: white; background: var(--color-primary); border-color: var(--color-primary); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project-card { overflow: hidden; background: white; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform 200ms ease, box-shadow 200ms ease; }
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.project-image { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #dce8f2; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-badge { position: absolute; top: 16px; left: 16px; padding: 6px 11px; color: white; background: rgba(7, 26, 47, 0.88); border-radius: 999px; font-size: 0.76rem; font-weight: 800; backdrop-filter: blur(8px); }
.project-content { padding: 28px; }
.project-type { margin-bottom: 8px; color: var(--color-secondary); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.project-content > p:not(.project-type) { min-height: 52px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.tag { padding: 5px 10px; color: #31516b; background: #eff5fa; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.project-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.project-actions .button-secondary { min-height: 42px; }
.empty-state { padding: 40px; color: var(--color-muted); background: white; border: 1px dashed #aebfd0; border-radius: var(--radius-md); text-align: center; }
.noscript-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.cta-band { color: white; background: linear-gradient(120deg, var(--color-primary) 0%, #0b5370 62%, var(--color-secondary) 100%); }
.cta-band-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
.cta-band h2, .cta-band p, .final-cta h2, .final-cta p { color: white; }
.cta-band p:not(.eyebrow) { max-width: 750px; margin-bottom: 0; }
.process-section { background: white; }
.process-list { display: grid; padding: 0; margin: 0; grid-template-columns: repeat(5, 1fr); list-style: none; }
.process-list li { position: relative; padding: 0 24px; border-left: 1px solid var(--color-border); }
.process-list li:last-child { border-right: 1px solid var(--color-border); }
.process-list li > span { display: block; margin-bottom: 24px; color: var(--color-brand); font-size: 0.83rem; font-weight: 900; }
.process-list p { margin-bottom: 0; font-size: 0.94rem; }
.technology-section { background: var(--color-bg); }
.tech-card > span { font-size: 1.08rem; }

.transparency-section { padding-top: 80px; padding-bottom: 80px; background: white; }
.transparency-card { display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: center; gap: 60px; padding: 48px; background: #f7fbff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.transparency-card h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.transparency-card p { margin-bottom: 0; }
.update-note { padding: 24px; border-left: 4px solid var(--color-accent); background: white; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow-sm); }
.update-note strong { color: var(--color-primary); }
.final-cta { color: white; background: radial-gradient(circle at 15% 50%, rgba(34, 211, 238, 0.18), transparent 28%), var(--color-primary); text-align: center; }
.final-cta-inner { max-width: 850px; }
.final-cta-inner > p:not(.eyebrow) { margin: 0 auto 30px; font-size: 1.08rem; }
.site-footer { padding: 45px 0; color: #d9e7f2; background: #04111f; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.site-footer strong { color: white; font-size: 1.05rem; }
.site-footer p { margin: 5px 0 0; color: #aebfd0; font-size: 0.88rem; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: #d9e7f2; font-size: 0.9rem; text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .footer-grid > p { justify-self: end; text-align: right; }

.modal { position: fixed; z-index: 500; inset: 0; display: grid; padding: 24px; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 13, 24, 0.78); backdrop-filter: blur(7px); }
.modal-dialog { position: relative; z-index: 1; width: min(920px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 44px; background: white; border-radius: var(--radius-lg); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35); }
.modal-close { position: absolute; top: 18px; right: 18px; display: grid; width: 42px; height: 42px; padding: 0; place-items: center; color: var(--color-primary); background: var(--color-bg); border: 0; border-radius: 50%; cursor: pointer; font-size: 1.8rem; line-height: 1; }
.modal-dialog > h2 { padding-right: 50px; }
.modal-description { max-width: 760px; font-size: 1.05rem; }
.case-grid { display: grid; margin-top: 32px; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-grid article { padding: 24px; background: var(--color-bg); border-radius: var(--radius-sm); }
.case-grid article > span { color: var(--color-brand); font-size: 0.78rem; font-weight: 900; }
.case-grid h3 { margin-top: 8px; }
.case-grid p { margin-bottom: 0; font-size: 0.92rem; }
.modal-footer { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 28px; }
.modal-footer .tag-list { margin: 0; }

@media (max-width: 1050px) {
  .main-navigation { gap: 15px; }
  .main-navigation > a:not(.button) { font-size: 0.84rem; }
  .hero-grid { grid-template-columns: 1fr 380px; gap: 35px; }
  .process-list { grid-template-columns: repeat(3, 1fr); row-gap: 46px; }
  .process-list li:nth-child(4) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid > p { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 860px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding: 82px 0; }
  .header-inner { flex-wrap: wrap; }
  .js .menu-toggle { display: block; }
  .main-navigation { display: grid; width: 100%; padding: 14px 0 22px; }
  .js .main-navigation { position: absolute; top: calc(100% + 1px); right: 0; left: 0; padding: 22px max(16px, calc((100vw - min(calc(100vw - 32px), var(--container))) / 2)); background: white; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity 180ms ease, transform 180ms ease; }
  .js .main-navigation.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-navigation > a { padding: 8px 0; }
  .main-navigation .button { margin-top: 4px; }
  .hero { padding: 78px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 520px); min-height: 430px; margin: 0 auto; }
  .three-columns { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner, .transparency-card { grid-template-columns: 1fr; gap: 34px; }
  .cta-band .button { justify-self: start; }
  .case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .section { padding: 70px 0; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .hero-visual { min-height: 390px; }
  .dashboard-main { right: 0; width: 90%; padding: 26px; }
  .dashboard-stat { width: 150px; padding: 16px; }
  .stat-one { left: 0; } .stat-two { right: 0; bottom: 55px; }
  .dashboard-tech { left: 0; }
  .three-columns, .projects-grid, .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li:nth-child(4), .process-list li:last-child { padding: 0 0 28px 22px; border: 0; border-left: 1px solid var(--color-border); }
  .project-content > p:not(.project-type) { min-height: auto; }
  .transparency-card { padding: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer .footer-grid > p { grid-column: auto; }
  .modal { padding: 12px; }
  .modal-dialog { max-height: calc(100vh - 24px); padding: 32px 22px; border-radius: var(--radius-md); }
  .modal-footer { align-items: stretch; flex-direction: column; }
  .modal-footer .button { width: 100%; }
}

@media (max-width: 430px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand { gap: 10px; }
  .brand-avatar { width: 50px; height: 50px; flex-basis: 50px; }
  .brand-name { font-size: 0.96rem; }
  .brand-detail { font-size: 0.76rem; }
  .button-row .button { width: 100%; }
  .hero-visual { min-height: 370px; }
  .dashboard-main { top: 50px; }
  .dashboard-main strong { font-size: 1.35rem; }
  .dashboard-stat { width: 138px; }
  .project-actions .button { width: 100%; }
  .project-filters { flex-wrap: nowrap; margin-right: -12px; padding: 0 12px 8px 0; overflow-x: auto; }
  .filter-button { flex: 0 0 auto; }
}

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