/* ---------------------------------------------------------------------------
   Alaino — Catalysis brand system
   Type: Satoshi (headlines) · General Sans (body)
   Palette: Catalysis Blue #CFEBFF / #6586EA · Yellow #FFEBCE / #FDB42B
            Purple #F9E1FF / #B417D7 · Red #FFE5E5 / #E46F67 · Green #EBFFC9
            Ink #1C1C1A
--------------------------------------------------------------------------- */
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }

:root {
  --ink: #1C1C1A;
  --ink-2: #4a4a48;
  --ink-3: #7a7a77;
  --white: #ffffff;
  --blue-50: #CFEBFF;
  --blue-100: #b9dfff;
  --blue: #6586EA;
  --yellow-50: #FFEBCE;
  --yellow: #FDB42B;
  --purple-50: #F9E1FF;
  --purple: #B417D7;
  --red-50: #FFE5E5;
  --green-50: #EBFFC9;
  --green: #7FA61A;
  --line: rgba(28,28,26,.1);
  --sans: "Satoshi", system-ui, -apple-system, sans-serif;
  --body: "General Sans", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1160px;
  --r: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }

h1 { font-family: var(--sans); font-weight: 400; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
h1 strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-family: var(--sans); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--body); font-weight: 500; font-size: 14px; letter-spacing: .02em; color: var(--blue); margin-bottom: 14px; }
.section-blue .eyebrow, .section-purple .eyebrow { color: var(--ink-2); }

/* --- buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 999px; background: var(--ink); color: var(--white); font-family: var(--body); font-weight: 500; font-size: 16px; line-height: 1; transition: transform .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn-nav { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.link-arrow { font-weight: 500; font-size: 16px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- nav ------------------------------------------------------------------- */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 18px var(--gutter) 0; pointer-events: none; }
.nav { pointer-events: auto; max-width: var(--max); margin: 0 auto; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; padding: 0 12px 0 22px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 1px 0 rgba(28,28,26,.04), 0 10px 30px -18px rgba(28,28,26,.25); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); justify-self: start; }
.brand-mark { height: 22px; width: auto; }
.brand-name { font-family: var(--sans); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1; }
.nav-links { display: flex; gap: 30px; justify-self: center; }
.nav .btn-nav { justify-self: end; }
.nav-links a { font-size: 15.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; border-radius: 50%; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { pointer-events: auto; display: none; flex-direction: column; max-width: var(--max); margin: 8px auto 0; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-radius: 24px; padding: 8px 22px; border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px -18px rgba(28,28,26,.3); }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.open { display: flex; }

/* --- hero ------------------------------------------------------------------ */
.hero { position: relative; background: var(--blue-50); margin-top: -82px; padding: 82px 0 0; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bars { position: absolute; left: 0; top: 104px; bottom: 0; width: 44%; }
.hero-bars canvas { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; width: 100%; padding: clamp(80px, 12vh, 140px) var(--gutter); padding-left: calc(44% + 64px); display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { max-width: 760px; }
.hero .eyebrow { color: var(--ink-2); }
.hero-sub { margin-top: 24px; max-width: 520px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hero-cta { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }

.hero-inner > * { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-inner > :nth-child(1) { animation-delay: .05s; }
.hero-inner > :nth-child(2) { animation-delay: .15s; }
.hero-inner > :nth-child(3) { animation-delay: .28s; }
.hero-inner > :nth-child(4) { animation-delay: .4s; }
.nav { animation: fade .6s ease both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --- clouds (carousel) ---------------------------------------------------- */
.clouds { background: var(--white); border-bottom: 1px solid var(--line); }
.clouds-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 56px); padding-top: 30px; padding-bottom: 30px; }
.clouds-label { font-size: 14px; font-weight: 500; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }
.marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); width: max-content; padding-right: clamp(48px, 6vw, 96px); animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.marquee-track img { height: 28px; width: auto; display: block; }
.marquee-track .l-aws { height: 34px; }
.marquee-track .l-gcp { height: 30px; }
.marquee-track .l-azure { height: 30px; }
.marquee-track .l-cw { height: 22px; }
.marquee-track .l-oci img { height: 20px; }
.marquee-track .l-oci span { font-family: var(--body); font-weight: 500; font-size: 17px; color: #C74634; letter-spacing: -0.01em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- sections -------------------------------------------------------------- */
.section { padding: clamp(72px, 9vw, 128px) 0; scroll-margin-top: 20px; }
.section-blue { background: var(--blue-50); }
.section-purple { background: var(--purple-50); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 700px; }

/* --- networks -------------------------------------------------------------- */
.net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.net { --bg: var(--blue-50); --c: var(--blue); position: relative; background: var(--bg); border-radius: var(--r); padding: 26px 26px 46px; display: flex; flex-direction: column; gap: 26px; min-height: 236px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.net::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 12px); opacity: .35; }
.c-blue { --bg: var(--blue-50); --c: var(--blue); }
.c-yellow { --bg: var(--yellow-50); --c: var(--yellow); }
.c-purple { --bg: var(--purple-50); --c: var(--purple); }
.c-green { --bg: var(--green-50); --c: var(--green); }
.c-red { --bg: var(--red-50); --c: #E46F67; }
.net:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(28,28,26,.35); }
.net-logo { width: 60px; height: 60px; border-radius: 50%; background: var(--white); display: grid; place-items: center; box-shadow: 0 1px 0 rgba(28,28,26,.06); }
.net-logo img { height: 30px; width: auto; display: block; }
.net-logo img.sm { height: 24px; }
.net-body { margin-top: auto; padding-right: 72px; }
.net h3 { font-size: 24px; }
.net p { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.net .pill { position: absolute; top: 26px; right: 26px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--white); color: #3f5a00; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* --- infrastructure -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { background: rgba(255,255,255,.6); border-radius: var(--r); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--sans); font-weight: 500; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.stat span { font-size: 15px; color: var(--ink-2); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { --c: var(--blue); position: relative; border-radius: var(--r); padding: 28px 26px 0; min-height: 300px; display: flex; flex-direction: column; overflow: hidden; background: var(--white); }
.tile h3 { font-size: 24px; }
.tile p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 260px; }
.tile .stripes { margin-top: auto; height: 64px; background:
  repeating-linear-gradient(90deg, var(--c) 0 5px, transparent 5px 14px); mask-image: linear-gradient(to bottom, transparent, #000 34%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 34%); opacity: .9; }
.tile-blue { background: #fff; --c: var(--blue); }
.tile-yellow { background: var(--yellow-50); --c: var(--yellow); }
.tile-purple { background: var(--purple-50); --c: var(--purple); }
.tile-green { background: var(--green-50); --c: var(--green); }

/* --- operations ------------------------------------------------------------ */
.ops-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ops-wrap .section-head { margin-bottom: 0; }
.ops { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.ops li { padding: 22px 0; border-top: 1px solid var(--line); }
.ops h3 { font-size: 19px; }
.ops p { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }

/* --- faq ------------------------------------------------------------------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq details { border-top: 1px solid rgba(28,28,26,.14); }
.faq details:last-child { border-bottom: 1px solid rgba(28,28,26,.14); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%231C1C1A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 60px 24px 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 640px; }

/* --- cta ------------------------------------------------------------------- */
.cta { position: relative; background: var(--green-50); overflow: hidden; }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.cta h2 { color: #4f6b00; }
.cta p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.cta .btn { font-family: var(--body); }
.cta-stripes { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 12px); opacity: .55; }

/* --- footer ---------------------------------------------------------------- */
.footer { background: var(--white); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.footer .brand-mark { height: 18px; }
.footer .brand-name { font-size: 18px; }
.footer-legal { font-size: 13px; color: var(--ink-3); line-height: 1.6; text-align: right; }

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .net-grid, .stats, .tiles { grid-template-columns: 1fr 1fr; }
  .net { min-height: 210px; }
  .ops-wrap, .faq-wrap { grid-template-columns: 1fr; }
  .ops-wrap .section-head, .faq-wrap .section-head { margin-bottom: 8px; }
}
@media (max-width: 820px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .nav { display: flex; justify-content: space-between; gap: 12px; padding-right: 10px; }
  .hero { min-height: 0; }
  .hero-bars { width: 100%; height: 150px; bottom: auto; top: 104px; opacity: .9; }
  .hero-inner { padding: 200px var(--gutter) 72px; }
  .hero-cta { gap: 20px; }
  .clouds-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .marquee { width: 100%; }
  .ops { grid-template-columns: 1fr; }
  .footer-legal { text-align: left; }
}
@media (max-width: 560px) {
  .net-grid, .tiles { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 20px 18px 16px; }
  .stat strong { font-size: 36px; }
  .net { min-height: 0; gap: 22px; }
  .tile { min-height: 240px; }
  .faq summary { font-size: 18px; }
  .faq details p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .net, .link-arrow::after, .faq summary::after { transition: none; }
  .hero-inner > *, .nav { animation: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}
