:root {
  --blue: #0051ae;
  --blue-deep: #013a7a;
  --ink: #1c1c1c;
  --text: #3f3f3f;
  --muted: #667085;
  --line: #e6e8ee;
  --soft: #f4f7fb;
  --navy: #0d2240;
  --white: #fff;
  --shadow: 0 18px 40px rgba(16, 36, 74, 0.08);
  --header: 78px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  border-radius: 999px;
  padding: 16px 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-dark {
  background: #111;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 51, 120, 0.22);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark:hover {
  background: var(--blue);
}

.btn-line {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-line:hover {
  background: var(--blue);
  color: #fff;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  box-shadow: 0 10px 30px rgba(16, 36, 74, 0.06);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(16, 36, 74, 0.05);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-size: 22px;
}

.logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 8px 14px rgba(0, 81, 174, 0.35));
}

.nav-toggle {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header);
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
  max-height: calc(100vh - var(--header));
  overflow: auto;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-link {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 650;
  font-weight: 600;
  padding: 12px 0;
  cursor: pointer;
}

.nav-anchor {
  display: inline-block;
}

.dropdown {
  display: none;
  padding: 0 0 8px 12px;
}

.nav-item.is-open .dropdown {
  display: grid;
  gap: 8px;
}

.dropdown a {
  color: var(--muted);
  font-size: 15px;
}

.dropdown a:hover {
  color: var(--blue);
}

.partner-strip {
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: #7b8494;
  font-size: 14px;
  padding: 14px 16px;
}

.partner-strip strong {
  color: var(--blue);
}

.hero {
  position: relative;
  padding: 72px 0 8px;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -8% auto;
  height: 160%;
  background:
    radial-gradient(circle at 18% 24%, rgba(0, 81, 174, 0.18), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(0, 81, 174, 0.12), transparent 28%),
    linear-gradient(rgba(0, 81, 174, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 81, 174, 0.07) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  mask-image: radial-gradient(circle at 50% 28%, #000 18%, transparent 70%);
  animation: grid-drift 22s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-inner,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 860px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: rise 0.9s ease 0.12s both;
}

.hero-kicker {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

.hero h1 {
  margin-top: 14px;
  color: var(--blue);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  animation: rise 0.8s ease both;
}

.hero h1::before {
  content: "AI at the core";
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(100deg, #013a7a 10%, #0051ae 38%, #4c8dff 50%, #0051ae 62%, #013a7a 90%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rise 0.8s ease both, shine 8s linear 0.8s infinite;
  }

  .hero h1::before {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--blue);
    animation: none;
  }
}

.hero-lead {
  max-width: 720px;
  margin: 22px auto 0;
  font-size: 18px;
  color: #4b5160;
}

.hero .btn {
  margin-top: 28px;
}

.proof {
  padding: 28px 0 8px;
}

.proof ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
  text-align: center;
}

.proof strong {
  display: block;
  color: var(--blue);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.proof span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.proof li {
  background: #fff;
  border-radius: 18px;
  padding: 16px 10px;
  box-shadow: 0 16px 36px rgba(0, 81, 174, 0.1);
  animation: rise 0.8s ease both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proof li:nth-child(2) { animation-delay: 0.05s; }
.proof li:nth-child(3) { animation-delay: 0.1s; }
.proof li:nth-child(4) { animation-delay: 0.15s; }
.proof li:nth-child(5) { animation-delay: 0.2s; }
.proof li:nth-child(6) { animation-delay: 0.25s; }

.proof li:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 81, 174, 0.18);
}

.hero-photo {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  height: 240px;
  margin: 36px auto 8px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 51, 120, 0.24);
  animation: rise 1s ease 0.18s both;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.34) 48%, transparent 64%);
  background-size: 220% 100%;
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-after {
  max-width: min(720px, calc(100vw - 150px));
  margin: 18px auto 8px;
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  padding-bottom: 8px;
}

.hero-photo img,
.panel-art img,
.team-photo img,
.work-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots span {
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
}

.hero-dots span:first-child {
  width: 14px;
  height: 14px;
  left: 18%;
  bottom: 28px;
  opacity: 0.85;
}

.hero-dots span:last-child {
  width: 54px;
  height: 54px;
  right: 16%;
  bottom: 8px;
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 16px;
}

.contact-direct a {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-aside {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-head h2,
.about h2,
.contact h2,
.family h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p,
.contact-copy p {
  margin-top: 10px;
  color: var(--muted);
}

.services {
  background: var(--soft);
  padding: 88px 0;
  margin-top: 28px;
}

.tablist,
.tech-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab,
.tech-tab {
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

.tab.is-active,
.tech-tab.is-active {
  background: var(--blue);
  color: #fff;
}

.panel {
  margin-top: 28px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.panel[hidden],
.tech-panel[hidden] {
  display: none;
}

.panel h3,
.tech-panel h3,
.work-card h3 {
  color: var(--ink);
  font-size: 32px;
  letter-spacing: -0.03em;
}

.panel p,
.tech-panel p {
  margin: 12px 0 18px;
  max-width: 46ch;
}

.panel-art {
  min-height: 280px;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #e8f1ff;
}

.panel-art img {
  min-height: 280px;
}

.browser, .phone, .dash, .cart-card, .app-grid {
  width: min(100%, 280px);
}

.browser {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #edf2f8;
}

.browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5d0e0;
}

.browser-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.browser-body span {
  display: block;
  height: 12px;
  border-radius: 99px;
  background: #d7e4f7;
}

.browser-body span:first-child { width: 70%; background: var(--blue); height: 18px; }

.phone {
  width: 140px;
  height: 240px;
  border-radius: 24px;
  background: #0d2240;
  padding: 12px;
}

.phone-screen {
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(#fff, #d7e6ff);
}

.dash, .app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash span, .app-grid span, .cart-card b {
  display: block;
  background: #fff;
  border-radius: 12px;
  min-height: 72px;
  box-shadow: var(--shadow);
}

.cart-card {
  display: grid;
  gap: 10px;
}

.tech {
  padding: 88px 0;
}

.tech-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  border-color: var(--line);
}

.tech-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f0fb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.tech-tab.is-active .tech-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.tech-panel {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  background: var(--soft);
  color: var(--blue-deep);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
}

.chips a {
  color: inherit;
  text-decoration: none;
}

.listings {
  background: #eef2f6;
  padding: 80px 0;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.badge-grid li {
  background: #fff;
  border-radius: 16px;
  min-height: 140px;
  padding: 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 4px;
}

.badge-grid span {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 6px;
}

.badge-grid strong {
  color: var(--ink);
}

.badge-grid small {
  color: var(--muted);
}

.quotes {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
}

.quotes .section-head h2 {
  color: #fff;
}

.slider {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  min-height: 240px;
}

.quote {
  display: none;
  text-align: center;
}

.quote.is-active {
  display: block;
}

.quote p {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  font-weight: 500;
}

.quote footer {
  margin-top: 22px;
}

.quote strong {
  display: block;
}

.quote span {
  color: #b7c4da;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.slider-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.slider-controls button:hover {
  background: #fff;
  color: var(--navy);
}

.about {
  padding: 88px 0;
}

.about-grid {
  display: grid;
  gap: 28px;
}

.team-card {
  margin-top: 22px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--soft);
}

.team-photo {
  height: 280px;
}

.team-card p {
  padding: 14px 16px 18px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stats li {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.stats strong {
  display: block;
  color: var(--blue);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.process {
  padding: 80px 0;
}

.process-steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-steps li {
  position: relative;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 18px 62px;
}

.process-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.process-steps a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.process-steps a:hover strong {
  color: var(--blue);
}

.process-steps strong {
  display: block;
  color: var(--ink);
}

.process-steps span {
  color: var(--muted);
  font-size: 14px;
}

.work {
  padding: 20px 0 88px;
}

.work-grid {
  display: grid;
  gap: 18px;
}

.work-card {
  background: #fff;
}

.work-visual {
  height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: #e8f1ff;
}

.work-kicker {
  margin-top: 14px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-more {
  text-align: center;
  margin-top: 28px;
}

.contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 10% 20%, #d6e6ff, transparent 40%);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  gap: 28px;
}


.contact-form {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d5dbe6;
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}

.form-status {
  min-height: 1.4em;
  color: var(--blue-deep);
  font-weight: 700;
}

.family {
  background: var(--blue);
  color: #fff;
  padding: 42px 0;
}

.family h2 {
  color: #fff;
  font-size: 22px;
}

.family ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}

.family li {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.site-footer {
  background: #101826;
  color: #c9d3e3;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.site-footer h3 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer li + li,
.site-footer address,
.site-footer p {
  margin-top: 8px;
}

.site-footer address {
  font-style: normal;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  font-size: 14px;
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.to-top[hidden] {
  display: none;
}

.ai-launcher {
  position: fixed;
  right: 16px;
  bottom: 70px;
  z-index: 20;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 81, 174, 0.28);
}

.ai-launcher[hidden] {
  display: none;
}

.ai-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  justify-content: center;
  padding: 12px;
}

.ai-layer[hidden] {
  display: none;
}

.ai-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 16, 32, 0.46);
}

.ai-panel {
  position: relative;
  width: min(440px, 100%);
  height: min(680px, calc(100dvh - 24px));
  background: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.ai-head,
.ai-compose {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-head {
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.ai-head p {
  margin-top: 4px;
  color: #667085;
  font-size: 14px;
}

.ai-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f6fb;
  font-size: 22px;
  cursor: pointer;
}

.ai-log {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ai-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-starter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.ai-msg {
  white-space: pre-wrap;
  background: #f3f6fb;
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0;
}

.ai-msg--user {
  align-self: flex-end;
  background: #10213f;
  color: #fff;
  max-width: 85%;
}

.ai-compose {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.ai-compose input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (min-width: 800px) {
  .hero-photo {
    height: 460px;
  }

  .proof ul {
    grid-template-columns: repeat(6, 1fr);
  }

  .panel,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .process-steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .process-steps li {
    padding: 58px 14px 16px;
  }

  .badge-grid,
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  }

  .section-head-split {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    text-align: left;
    gap: 24px;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-link {
    width: auto;
    padding: 10px 12px;
  }

  .nav-item {
    position: relative;
  }

  .dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 230px;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown {
    display: grid;
  }
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 12px;
}

.page-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin-top: 10px;
  color: var(--blue);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-lead {
  margin-top: 16px;
  max-width: 68ch;
  font-size: 18px;
  color: #4b5160;
}

.page-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--blue);
  background: var(--soft);
  color: var(--text);
  font-size: 15px;
}

.page-hero .btn {
  margin-top: 24px;
}

.page-hero-grid,
.page-split {
  display: grid;
  gap: 28px;
  align-items: start;
}

.page-hero-img,
.page-side img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 51, 120, 0.16);
}

.page-section {
  padding: 28px 0 72px;
}

.page-section h2,
.page-side h2 {
  color: var(--ink);
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 28px 0 8px;
}

.page-section h2 + h2,
.page-side h2 {
  margin-top: 28px;
}

.detail-list {
  display: grid;
}

.detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list strong {
  color: var(--ink);
}

.fact-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.fact-list div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.fact-list strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
}

.blog-post p + p,
.blog-post .post-meta + p {
  margin-top: 16px;
}

.post-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.blog-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(0, 81, 174, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 81, 174, 0.18);
}

.blog-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-card .card-date,
.blog-card h2,
.blog-card p {
  margin-right: 16px;
  margin-left: 16px;
}

.blog-card .card-date {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.blog-card h2 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.blog-card p {
  margin-top: 8px;
  margin-bottom: 16px;
  color: #4b5160;
}

.blog-reader {
  display: none;
}

.blog-reader:has(.blog-post:target) {
  display: block;
}

body:has(.blog-post:target) .blog-cards {
  display: none;
}

.post-back {
  margin-bottom: 8px;
  font-weight: 800;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.post-actions button,
.post-actions a,
.comment-form button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.post-actions button[data-liked] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.comment-form {
  display: grid;
  gap: 8px;
  max-width: 560px;
  margin-top: 18px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

.comment-form button {
  justify-self: start;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.comment-status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 14px;
}

.comments {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.comments li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.comments strong {
  display: block;
  color: var(--ink);
}

.hp {
  position: absolute;
  left: -9999px;
}

.related-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.related-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 36, 74, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-grid a:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0, 81, 174, 0.14);
}

.related-grid strong {
  display: block;
  color: var(--ink);
}

.page-side .chips {
  margin-top: 12px;
}

a[aria-current="page"] {
  color: var(--blue);
}

@media (min-width: 800px) {
  .page-hero-grid,
  .page-split {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .page-hero-img,
  .page-side img {
    height: 380px;
  }

  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes shine {
  to { background-position: 220% center; }
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 46px 46px, 0 46px; }
}

@keyframes sheen {
  0%, 62% { background-position: 140% 0; }
  100% { background-position: -40% 0; }
}

.app-tabs {
  display: none;
}

@media (max-width: 979px) {
  :root {
    --tabbar: calc(64px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: var(--tabbar);
  }

  body.app-menu-open {
    overflow: hidden;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
    height: auto;
    min-height: calc(64px + env(safe-area-inset-top));
  }

  .header-bar {
    height: 64px;
  }

  .logo {
    font-size: 20px;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before,
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: rotate(-45deg);
  }

  .site-nav.is-open {
    position: fixed;
    z-index: 28;
    top: calc(64px + env(safe-area-inset-top));
    right: 0;
    bottom: var(--tabbar);
    left: 0;
    max-height: none;
    padding: 14px 14px 18px;
    background: var(--soft);
    border-bottom: 0;
  }

  .nav-list {
    gap: 10px;
  }

  .nav-list > li {
    background: #fff;
    border-radius: 16px;
    padding: 2px 16px;
    box-shadow: 0 10px 24px rgba(16, 36, 74, 0.06);
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 16px;
  }

  .nav-item > .nav-link {
    justify-content: space-between;
  }

  .nav-item > .nav-link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
  }

  .nav-item.is-open > .nav-link::after {
    transform: rotate(225deg);
  }

  .dropdown a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    border-top: 1px solid var(--line);
  }

  .partner-strip {
    padding: 10px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 28px 0 4px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .proof ul {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 12px;
  }

  .proof li {
    flex: 0 0 148px;
    scroll-snap-align: start;
  }

  .app-tabs {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    height: var(--tabbar);
    padding: 6px 8px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 -10px 30px rgba(16, 36, 74, 0.06);
  }

  .app-tabs a,
  .app-tabs button {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }

  .app-tabs svg {
    width: 22px;
    height: 22px;
  }

  .app-tabs .is-current {
    color: var(--blue);
  }

  .to-top,
  .ai-launcher {
    display: none;
  }

  .ai-layer {
    z-index: 50;
    align-items: stretch;
    padding: 0;
  }

  .ai-panel {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before,
  .page-hero::before,
  .hero h1,
  .hero-actions,
  .proof li,
  .hero-photo,
  .hero-photo::after {
    animation: none;
  }
}
