/* aptec: company site. Brand: Tropical Indigo #9E76E7, Sky Blue #64D2CD, Aquamarine #8AFBCB, Black #1A1A1A, Poppins. */
@font-face { font-family: 'Poppins'; font-weight: 300; font-display: swap; src: url('assets/fonts/Poppins-Light.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('assets/fonts/Poppins-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 500 600; font-display: swap; src: url('assets/fonts/Poppins-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('assets/fonts/Poppins-Bold.ttf') format('truetype'); }

:root {
  --black: #1A1A1A;
  --ink: #1A1A1A;
  --ink-2: #3B3E45;
  --mute: #646873;
  --line: #E6E8EC;
  --soft: #F5F6F8;
  --white: #FFFFFF;
  --indigo: #9E76E7;
  --indigo-ink: #6F47C9;
  --sky: #64D2CD;
  --aqua: #8AFBCB;
  --grad: linear-gradient(90deg, #9E76E7 0%, #64D2CD 58%, #8AFBCB 100%);
  --grad-hero: linear-gradient(125deg, #8AFBCB 0%, #64D2CD 38%, #7FA8E6 72%, #9E76E7 100%);
  --dark: #111214;
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
::selection { background: #E4DAFA; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1.5px solid transparent; transition: transform .15s ease, background .15s, color .15s, border-color .15s, box-shadow .2s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn-light { background: var(--white); color: var(--black); box-shadow: 0 10px 30px -12px rgba(40, 30, 90, .45); }
.btn-ghost-light { color: #1E2A44; border-color: rgba(30, 42, 68, .45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.35); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-grad { background: var(--grad); color: var(--black); }

/* ------------------------------------------------ nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s ease, box-shadow .3s ease, border-color .3s ease, backdrop-filter .3s ease; }
.nav-in { height: 78px; display: flex; align-items: center; justify-content: space-between; transition: height .3s ease; }
.brand img { transition: height .3s ease; }
/* over the hero, once scrolled: frosted glass so the headline passes cleanly underneath */
.nav.glass { background: linear-gradient(90deg, rgba(100, 210, 205, .55), rgba(140, 150, 230, .55)); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-bottom-color: rgba(255, 255, 255, .28); box-shadow: 0 10px 30px -18px rgba(40, 30, 100, .45); }
.nav.glass .nav-in, .nav.solid .nav-in { height: 64px; }
.nav.glass .brand img, .nav.solid .brand img { height: 28px; }
.brand img { height: 34px; width: auto; }
.brand .logo-dark { display: none; }
.links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--white); }
.links a:not(.btn) { opacity: .92; }
.links a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.nav.solid { background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); box-shadow: none; }
.nav.solid .logo-light { display: none; }
.nav.solid .logo-dark { display: block; }
.nav.solid .links { color: var(--ink); }
.nav.solid .btn-light { background: var(--black); color: var(--white); box-shadow: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--white); border-radius: 2px; margin: 6px 0; transition: transform .2s; }
.nav.solid .menu-btn span { background: var(--ink); }

/* ------------------------------------------------ hero */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: var(--white); padding: 120px 0 0; }
.hero-bg { position: absolute; inset: 0; background: var(--grad-hero); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 15% 30%, rgba(255,255,255,.22), transparent 70%); }
/* the dark brand photography is screened onto the gradient, so only its light shows */
.hero-photo { position: absolute; right: -6%; top: 50%; width: min(64vw, 980px); transform: translateY(-46%); mix-blend-mode: screen; opacity: .95; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.hero-strokes { position: absolute; left: -140px; bottom: -160px; width: 520px; opacity: .7; pointer-events: none; filter: brightness(10); }
.hero-in { position: relative; max-width: 1180px; }
.hero-kicker { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #233B5C; margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.0; text-shadow: 0 2px 24px rgba(40, 60, 120, .28); }
.hero-sub { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; color: #3E2A8C; margin-top: 18px; letter-spacing: -0.02em; }
.hero-body { max-width: 560px; font-size: 17px; margin-top: 16px; color: #1E2A44; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-foot { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; padding: 64px 0 34px; color: #233B5C; }
.hero-foot i { width: 5px; height: 5px; border-radius: 3px; background: currentColor; opacity: .7; }

/* ------------------------------------------------ sections */
.section { padding: 120px 0; position: relative; }
.section.soft { background: var(--soft); }
.head { max-width: 760px; margin-bottom: 56px; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo-ink); margin-bottom: 14px; }
.head h2, .product h2 { font-size: clamp(34px, 4.2vw, 54px); font-weight: 700; }
.lede { font-size: 18px; color: var(--mute); margin-top: 18px; max-width: 620px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* icon rendered through a mask so it takes the brand gradient */
.ic { display: block; width: 46px; height: 46px; background: var(--grad); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { border-radius: var(--r); overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(60, 40, 140, .35); }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.service h3 { font-size: 20px; font-weight: 600; }
.service p { color: var(--mute); font-size: 15px; }

.dark { background: var(--dark); color: var(--white); overflow: hidden; }
.dark .kicker { color: var(--aqua); }
.dark .lede { color: #B4B7BF; }
.dark-strokes { position: absolute; right: -220px; top: -120px; width: 640px; opacity: .22; pointer-events: none; }
.product { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; position: relative; }
.product h2 { margin-bottom: 4px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 34px; display: flex; flex-direction: column; gap: 12px; color: #D9DADF; font-size: 15.5px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.ticks li::before { content: ''; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--grad) ; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.product-shot { background: #1A1B1F; border: 1px solid #2A2C31; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(100, 210, 205, .25); }
.shot-top { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid #2A2C31; font-size: 12.5px; color: #8E929A; }
.shot-top i { width: 10px; height: 10px; border-radius: 5px; background: #34363C; }
.shot-top span { margin-left: 10px; }
.shot-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.shot-row { display: flex; justify-content: space-between; align-items: flex-end; }
.shot-row small { display: block; color: #8E929A; font-size: 12.5px; }
.shot-row b { font-size: 19px; font-weight: 600; }
.score { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.score small { font-size: 16px; color: #8E929A; font-weight: 500; }
.shot-bar { height: 6px; background: #2A2C31; border-radius: 3px; overflow: hidden; margin: 6px 0 8px; }
.shot-bar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.shot-task { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; font-size: 14px; color: #D9DADF; padding: 9px 0; border-top: 1px solid #26282D; }
.shot-task span { width: 18px; height: 18px; border-radius: 5px; background: #2A2C31; }
.shot-task.ok span { background: var(--grad); }
.shot-task em { font-style: normal; font-size: 12px; color: #8E929A; text-transform: capitalize; }
.shot-term { margin-top: 10px; background: #0E0F11; border-radius: 12px; padding: 14px 16px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; color: #E5E6E9; line-height: 1.7; }
.shot-term b { color: var(--aqua); font-weight: 400; }
.shot-term .dim { color: #7D8088; }
.shot-term .ok { color: var(--aqua); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar { padding: 34px 32px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: background .25s; }
.pillar:hover { background: var(--soft); }
.pillar h3 { font-size: 19px; font-weight: 600; }
.pillar p { color: var(--mute); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--r); padding: 28px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.steps li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(.25); transform-origin: left; transition: transform .5s ease; }
.steps li:hover::before { transform: scaleX(1); }
.steps .n { font-size: 13px; font-weight: 600; color: var(--indigo-ink); }
.steps h3 { font-size: 20px; font-weight: 600; margin: 14px 0 10px; }
.steps p { color: var(--mute); font-size: 15px; }

.cta { position: relative; overflow: hidden; background: var(--grad-hero); color: var(--black); padding: 110px 0; text-align: center; }
.cta-strokes { position: absolute; right: -120px; top: -140px; width: 520px; opacity: .55; pointer-events: none; filter: brightness(10); }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; }
.cta p { font-size: 18px; color: #26283A; margin-bottom: 10px; }

.footer { background: var(--dark); color: #A9ACB4; padding: 72px 0 32px; font-size: 14.5px; }
.footer-in { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols b { color: var(--white); font-weight: 600; margin-bottom: 4px; }
.footer-cols a:hover { color: var(--white); }
.footer-base { border-top: 1px solid #26282D; margin-top: 56px; padding-top: 24px; font-size: 13px; }

/* ------------------------------------------------ motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.services .reveal:nth-child(2), .pillars .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.services .reveal:nth-child(3), .pillars .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.services .reveal:nth-child(4), .pillars .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service, .service-img img { transition: none; }
}

/* ------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-photo { width: 110vw; right: -30%; opacity: .55; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .links { position: fixed; inset: 78px 0 auto 0; background: var(--white); color: var(--ink); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 16px 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); display: none; }
  .links a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: 14px; background: var(--black); color: var(--white); }
  .nav.open .links { display: flex; }
  .menu-btn { display: block; }
  .nav.open { background: var(--white); }
  .nav.open .logo-light { display: none; }
  .nav.open .logo-dark { display: block; }
  .nav.open .menu-btn span { background: var(--ink); }
  .brand img { height: 28px; }
  .section { padding: 80px 0; }
  .services, .pillars, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
  .hero-foot { padding-top: 40px; gap: 10px; }
  .btn { height: 48px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
