/* Brand values and shared component dimensions follow index.html. */
:root {
  --oxford: #04172E;
  --oxford-deep: #030E1C;
  --sky: #0077B6;
  --capri: #13B2F7;
  --emerald: #39D08A;
  --blizzard: #ADE8F4;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-mid: #6B7280;
  --gray-dark: #374151;
  --border: #E5E7EB;
  --input-border: #8290A2;
  --capri-tint: #F0F9FF;
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--white); color: var(--oxford); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
[hidden] { display: none !important; }
a { color: var(--sky); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
p { line-height: 1.7; }
p + p { margin-top: 16px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; }
.skip-link { position: absolute; top: -100%; left: 16px; z-index: 9999; padding: 10px 18px; background: var(--emerald); color: var(--oxford); font-size: 14px; font-weight: 700; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* Homepage navigation. */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 22px 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease; }
nav.scrolled { background: rgba(4,23,46,0.93); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-logo { display: inline-block; transition: transform 0.2s ease; }
.nav-logo:hover, .nav-logo:focus-visible { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .nav-logo { transition: none; } }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a:not(.nav-cta) { position: relative; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 1px; background: var(--capri); transform: scaleX(0); transform-origin: left center; transition: transform 0.28s var(--ease-out-strong); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links .nav-cta { display: inline-flex; align-items: center; padding: 12px 22px; border: 1.5px solid var(--capri); border-radius: 7px; color: var(--capri); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; transition: background 0.2s, color 0.2s, transform 0.15s var(--ease-out-strong); }
.nav-links .nav-cta:hover { background: var(--capri); color: var(--oxford); }
.nav-cta:active { transform: scale(0.97); transition-duration: 100ms; }
nav :focus-visible { outline-color: var(--capri); }

.nav-brand { display: flex; align-items: center; gap: 20px; }

/* Footer, shared with the homepage and skill page. */
footer { background: var(--oxford-deep); padding: 72px 64px 32px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(190px,0.9fr) repeat(2,minmax(190px,1fr)); gap: clamp(32px,4.5vw,64px); align-items: start; }
.footer-logo img { height: 32px; width: auto; display: block; margin-bottom: 32px; }
.footer-heading { font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.015em; margin-bottom: 12px; }
.footer-email, .office-phone { color: rgba(255,255,255,0.64); text-decoration: none; transition: color 0.2s; }
.footer-email { font-size: 14px; }
.footer-email:hover, .office-phone:hover { color: var(--white); }
.office-label { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.office-name { font-size: 17px; font-weight: 600; color: var(--white); line-height: 1.4; margin-bottom: 12px; }
.office-address { font-size: 14px; font-style: normal; color: rgba(255,255,255,0.64); line-height: 1.85; }
.office-meta { display: block; margin-top: 8px; }
.footer-bottom { max-width: 1240px; margin: 56px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.65); }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.88); }
footer :focus-visible { outline-color: var(--capri); }
:is(h2, h3) { scroll-margin-top: 110px; }

/* ─── OtoQ page ─── */
.container { max-width: 1080px; margin: 0 auto; }
.overline { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.section { padding: 96px 64px; }
.section h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.section-lead { margin-top: 16px; max-width: 620px; font-size: 17px; color: var(--gray-mid); }

/* Hero: dark band so the fixed nav reads the same as on the homepage */
.hero { padding: 168px 64px 96px; background: linear-gradient(160deg, rgba(19,178,247,0.10) 0%, transparent 50%), var(--oxford); color: rgba(255,255,255,0.75); }
.hero .overline { color: var(--capri); }
.hero h1 { font-size: clamp(56px, 8vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; color: var(--white); }
.hero-sub { max-width: 760px; margin-top: 14px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; color: var(--white); text-wrap: balance; }
.hero-sub span { color: var(--capri); }
.hero-lead { max-width: 640px; margin-top: 20px; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }

/* Hero graphic: a figurative OtoQ console between its triggers and bots */
.hero-grid { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-graphic { margin: 0; min-width: 0; }
.hero-graphic svg { display: block; width: 100%; height: auto; overflow: visible; font-family: 'Montserrat', sans-serif; }
.og-node rect:first-child { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.16); }
.og-row > rect:first-child { fill: rgba(255,255,255,0.05); }
.og-label { font-size: 12px; font-weight: 700; fill: #FFFFFF; }
.og-cap { font-size: 9.5px; font-weight: 500; fill: rgba(255,255,255,0.62); }
.og-cap--held { fill: rgba(245,181,68,0.85); }
.og-hub-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; fill: #FFFFFF; }
.og-item { font-size: 11px; font-weight: 600; fill: rgba(255,255,255,0.88); }
.og-pill { font-size: 8.5px; font-weight: 700; text-anchor: middle; letter-spacing: 0.02em; }
.og-held { font-size: 10.5px; font-weight: 700; fill: #F5B544; }
.og-live { animation: og-pulse 1.6s ease-in-out infinite; }
.og-running { animation: og-pulse 1.6s ease-in-out infinite; }
@keyframes og-pulse { 50% { opacity: 0.35; } }
.btn-emerald { display: inline-flex; align-items: center; gap: 9px; padding: 15px 30px; background: var(--emerald); color: var(--oxford); border-radius: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; transition: transform 0.22s var(--ease-out-strong), box-shadow 0.22s var(--ease-out-strong); }
.btn-emerald:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(57,208,138,0.3); }
.btn-emerald:active { transform: scale(0.97); transition-duration: 100ms; }
.text-link { font-size: 15px; font-weight: 600; color: var(--capri); }

/* What it means for you: four plain benefits */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.benefit { padding: 28px 28px 30px; background: var(--off-white); border: 1px solid var(--border); border-radius: 14px; }
.benefit h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; line-height: 1.35; }
.benefit h3::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--capri); box-shadow: 0 0 0 4px rgba(19,178,247,0.18); }
.benefit p { margin-top: 10px; font-size: 15px; color: var(--gray-dark); }

/* How it works: a real three-step sequence, with a small flow above it */
.how { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 48px; }
.flow-node { padding: 16px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.4; }
.flow-node small { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--gray-mid); }
.flow-node.is-otoq { background: var(--oxford); border-color: var(--oxford); color: var(--white); }
.flow-node.is-otoq small { color: rgba(255,255,255,0.7); }
.flow-arrow { width: 28px; height: 2px; background: var(--capri); position: relative; }
.flow-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border-left: 8px solid var(--capri); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.step-num { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--oxford); color: var(--capri); font-size: 14px; font-weight: 800; }
.steps h3 { font-size: 17px; font-weight: 700; line-height: 1.4; padding-top: 5px; }
.steps p { font-size: 15px; color: var(--gray-dark); }

/* Question and closing call to action */
.faq-item { max-width: 760px; margin-top: 32px; padding: 26px 28px; border: 1px solid var(--border); border-radius: 14px; }
.faq-item h3 { font-size: 18px; font-weight: 700; }
.faq-item p { margin-top: 10px; font-size: 15px; color: var(--gray-dark); }
.closing { padding: 88px 64px; background: var(--oxford); color: rgba(255,255,255,0.75); text-align: center; }
.closing h2 { color: var(--white); }
.closing .section-lead { margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.72); }
.closing .hero-actions { justify-content: center; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-graphic { max-width: 560px; }
}
@media (max-width: 600px) { .hero-graphic { display: none; } }
@media (max-width: 1024px) {
  nav { padding: 20px 40px; }
  .hero, .section, .closing { padding-left: 40px; padding-right: 40px; }
  footer { padding-left: 40px; padding-right: 40px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { width: 2px; height: 20px; justify-self: center; }
  .flow-arrow::after { right: -4px; top: auto; bottom: -1px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--capri); border-bottom: 0; }
}
@media (max-width: 1100px) { .nav-links { gap: 24px; } }
@media (max-width: 960px) { .nav-links a:not(.nav-cta) { display: none; } }
@media (max-width: 860px) {
  nav { padding: 18px 28px; }
  .nav-links .nav-cta { padding: 11px 16px; }
  .hero { padding: 120px 28px 64px; }
  .section, .closing { padding: 64px 28px; }
  .benefits, .steps { grid-template-columns: 1fr; }
  footer { padding: 56px 28px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-office { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }
  .footer-bottom { margin-top: 40px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 480px) { .footer-links { gap: 16px; } .benefit, .faq-item { padding: 22px 20px; } }
@media (max-width: 374px) {
  nav { padding-left: 16px; padding-right: 16px; gap: 12px; }
  .nav-links .nav-cta { padding: 10px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  nav, .nav-links a, .nav-links a::after, .nav-links .nav-cta, .btn-emerald { transition: none; }
  .og-live, .og-running { animation: none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Eight footer links: wrap whole links instead of breaking them mid-name */
.footer-bottom { gap: 24px; }
.footer-copy { flex-shrink: 0; }
.footer-links { flex-wrap: wrap; row-gap: 12px; }
.footer-links a { white-space: nowrap; }
