:root {
  --ink: #13233f;
  --muted: #52627a;
  --paper: #fffdf8;
  --tint: #eef4f7;
  --accent: #ed6a5a;
  --accent-dark: #ba4034;
  --line: #d8e0e6;
  --white: #ffffff;
  --max: 1160px;
  --shadow: 0 18px 50px rgba(19, 35, 63, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #2674c7; outline-offset: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
h1 { max-width: 820px; font-size: clamp(2.65rem, 6vw, 5.7rem); }
h2 { max-width: 740px; font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1rem; }

.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 16px; background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: absolute; z-index: 10; width: 100%; color: var(--white); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 32px; }
.brand { display: flex; align-items: center; padding: 5px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; background: var(--white); box-shadow: 0 5px 20px rgba(0,0,0,.14); font-weight: 750; text-decoration: none; }
.brand img { width: 111px; height: 50px; object-fit: contain; }
nav ul, .site-footer ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin: 0; padding: 0; list-style: none; }
nav a { font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero { overflow: hidden; color: var(--white); background: radial-gradient(circle at 78% 18%, #375b7e 0, transparent 30%), linear-gradient(135deg, #0c1d36 0%, #173859 64%, #1d4c67 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .65fr); align-items: center; min-height: 780px; padding-top: 112px; gap: 64px; }
.hero-copy { position: relative; z-index: 2; padding-block: 80px; }
.eyebrow { margin-bottom: 20px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow, .contact-section .eyebrow { color: #ff9c8f; }
.hero-intro { max-width: 720px; margin-top: 30px; color: #dbe7ef; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; font-size: .9rem; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--white); }
.button-secondary { border-color: currentColor; background: transparent; }
.hero-visual { align-self: end; }
.phone-frame { width: min(100%, 320px); margin-inline: auto; padding: 16px 16px 0; border: 2px solid rgba(255,255,255,.4); border-bottom: 0; border-radius: 54px 54px 0 0; background: #071324; box-shadow: var(--shadow); }
.phone-frame img { width: 100%; border-radius: 39px 39px 0 0; }

.section { padding-block: clamp(76px, 10vw, 140px); }
.section-tint { background: var(--tint); }
.split, .section-heading, .callout-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); }
.prose { max-width: 650px; color: var(--muted); }
.text-link { color: var(--accent-dark); font-weight: 800; text-underline-offset: 5px; }
.card-grid { display: grid; gap: 24px; margin-top: 54px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card { min-height: 265px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 10px 35px rgba(19,35,63,.05); }
.card p:last-child, .work-card p { color: var(--muted); }
.card-number { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.card h3 { margin: 54px 0 14px; }
.section-heading > p { max-width: 520px; align-self: end; color: var(--muted); }
.ai-section { color: var(--white); background: linear-gradient(145deg, #101d35 0%, #183e5d 100%); }
.ai-section .section-heading > p { color: #dbe3ed; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.ai-card { padding: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.07); }
.ai-card h3 { margin: 34px 0 12px; }
.ai-card p { color: #dbe3ed; }
.tool-mark { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 15px; color: var(--ink); background: #ffb7ac; font-size: .82rem; font-weight: 900; letter-spacing: .06em; }
.ai-card:nth-child(2) .tool-mark { background: #b9dcff; }
.ai-card:nth-child(3) .tool-mark { background: #d2c4ff; }
.ai-principle { margin-top: 20px; padding: 22px 26px; border-left: 4px solid #ff9c8f; color: #e7eef5; background: rgba(0,0,0,.15); }
.app-icon-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); margin-top: 54px; }
.app-icon-grid img { width: 100%; aspect-ratio: 1; border-radius: 22%; object-fit: cover; background: var(--white); box-shadow: 0 8px 24px rgba(19,35,63,.12); }
.article-callout { color: var(--white); background: var(--ink); }
.article-callout p:not(.eyebrow) { color: #dbe3ed; }
.article-callout .button { margin-top: 18px; }
.contact-section { color: var(--white); background: var(--accent-dark); }
.contact-grid { align-items: end; }
.contact-grid p:not(.eyebrow) { max-width: 640px; margin-top: 24px; color: #ffe4df; }
.contact-action { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45); }
.contact-action span { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-action a { display: inline-block; margin-top: 8px; font-size: clamp(1.15rem, 2.5vw, 1.8rem); font-weight: 800; overflow-wrap: anywhere; text-underline-offset: 6px; }
.site-footer { padding-block: 30px; color: #dbe3ed; background: #09172b; font-size: .82rem; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-wrap p { margin: 0; }

.article-page { background: var(--paper); }
.article-header { color: var(--white); background: var(--ink); }
.article-header .site-header { position: static; }
.article-hero { padding-block: 72px 96px; }
.article-hero h1 { max-width: 900px; font-size: clamp(2.4rem, 6vw, 5rem); }
.article-hero p { max-width: 720px; margin-top: 24px; color: #dbe3ed; font-size: 1.15rem; }
.article-content { width: min(calc(100% - 48px), 820px); margin-inline: auto; padding-block: 80px 110px; }
.article-content section { padding-block: 40px; border-bottom: 1px solid var(--line); }
.article-content section:first-child { padding-top: 0; }
.article-content h2, .article-content h3 { margin-bottom: 24px; font-size: clamp(1.55rem, 4vw, 2.2rem); }
.article-content p, .article-content li { color: #35465e; }
.article-content li + li { margin-top: 12px; }
.article-content a { color: var(--accent-dark); text-underline-offset: 4px; }
.article-contact { margin-top: 50px; padding: 34px; border-radius: 22px; color: var(--white); background: var(--ink); }
.article-contact h2 { font-size: 1.75rem; }
.article-contact p { color: #dbe3ed; }
.article-contact a { color: var(--white); font-weight: 800; }
.legal-card { margin-top: 44px; padding: clamp(26px, 6vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.legal-card h2 { margin-bottom: 28px; font-size: clamp(1.55rem, 4vw, 2.2rem); }
.legal-card address { color: #35465e; font-style: normal; }
.legal-card a { color: var(--accent-dark); font-weight: 800; text-underline-offset: 4px; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { display: none; }
  .hero-copy { padding-block: 96px 86px; }
  .services-grid, .ai-grid { grid-template-columns: 1fr; }
  .app-icon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .split, .section-heading, .callout-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .shell, .article-content { width: min(calc(100% - 32px), var(--max)); }
  .nav-wrap { min-height: 74px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-block: 10px; }
  .brand { padding: 4px 8px; }
  .brand img { width: 89px; height: 40px; }
  nav ul { gap: 4px 16px; }
  nav a { font-size: .75rem; }
  .hero-grid { padding-top: 118px; }
  .hero-copy { padding-block: 72px; }
  .section { padding-block: 76px; }
  .card-grid { margin-top: 36px; }
  .card { min-height: 0; padding: 26px; }
  .card h3 { margin-top: 32px; }
  .app-icon-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
  .article-hero { padding-block: 55px 72px; }
  .article-content { padding-block: 60px 80px; }
}

@media (max-width: 430px) {
  nav li:nth-child(2), nav li:nth-child(4) { display: none; }
  .button-row, .button { width: 100%; }
  .app-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
