/* Havasu AI tokens */
:root {
  --night: #0a1022;       /* dark sections */
  --night-2: #121b36;     /* raised surfaces on dark */
  --wire: rgba(150, 175, 230, .16); /* grid and hairlines on dark */
  --cloud: #f3f5f9;       /* light sections */
  --ink: #0e1324;         /* text on light */
  --slate: #586176;       /* secondary text on light */
  --mist: #aab5cc;        /* secondary text on dark */
  --flare: #ff5e1a;       /* actions: buttons, focus */
  --signal: #47d4ff;      /* automation: wires, ticks, live states */
  --display: "Syne", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cloud); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main > section { scroll-margin-top: 4.5rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--flare); color: var(--ink); padding: .75rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header: transparent over the hero, solid once scrolled */
.bar { position: fixed; inset: 0 0 auto; z-index: 10; transition: background-color .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.bar.is-solid { background: rgba(10, 16, 34, .86); backdrop-filter: blur(12px); border-bottom-color: var(--wire); }
.bar__inner { max-width: var(--wrap); margin: 0 auto; padding: 1rem var(--gutter); display: flex; align-items: center; gap: 2rem; color: #fff; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.wordmark__dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--flare); box-shadow: 0 0 0 4px rgba(255, 94, 26, .22); }
.bar nav { display: flex; gap: 1.9rem; margin-left: auto; }
.bar nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: #d7deec; }
.bar nav a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--flare); color: #12080a;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .95rem 1.5rem; border-radius: 12px; text-decoration: none;
  box-shadow: 0 8px 24px -10px rgba(255, 94, 26, .7);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { background: #ff7438; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(255, 94, 26, .8); }
.btn--small { padding: .6rem 1rem; font-size: .9rem; border-radius: 10px; box-shadow: none; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn--ghost:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }

/* Type */
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.02em; max-width: 20ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.h2--light { color: #fff; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 75% 20%, #1b2a55 0%, transparent 60%), var(--night); color: #fff; padding: clamp(7rem, 12vw, 9.5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--wire) 1px, transparent 1px), linear-gradient(90deg, var(--wire) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero__inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.hero__lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #c9d2e5; max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.25rem; }
.hero__note { font-size: .92rem; color: var(--mist); }

.hero__visual { position: relative; }
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: #1a2340; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 4 / 3.2; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }

.runlog {
  position: absolute; left: clamp(-3rem, -4vw, -1rem); bottom: -2rem; width: min(22rem, 85%);
  background: rgba(13, 21, 44, .9); backdrop-filter: blur(14px);
  border: 1px solid rgba(71, 212, 255, .28); border-radius: 14px; padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.8);
}
.runlog__head { display: flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600; color: var(--signal); margin-bottom: .75rem; }
.pulse { width: .55rem; height: .55rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(71,212,255,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(71,212,255,0); } }
.runlog__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.runlog__steps li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: #e3e9f5; }
.tick { flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid rgba(71,212,255,.45); position: relative; }
.runlog__steps li.is-done .tick { background: var(--signal); border-color: var(--signal); }
.runlog__steps li.is-done .tick::after { content: ""; position: absolute; left: .34rem; top: .16rem; width: .28rem; height: .55rem; border: solid #06101f; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Industries */
.industries { padding: clamp(6rem, 10vw, 8.5rem) 0 clamp(4.5rem, 8vw, 7rem); }
.industries__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.industry { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid #e3e7ef; }
.industry img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.industry__body { padding: 1.4rem 1.5rem 1.6rem; }
.industry h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.industry p { color: var(--slate); }
.aside { margin-top: 2.25rem; color: var(--slate); max-width: 40rem; }

/* Automation demo: the signature moment */
.demo { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: clamp(5rem, 9vw, 7.5rem) 0; }
.demo__grid-bg { position: absolute; inset: 0; background-image: radial-gradient(rgba(150,175,230,.22) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.demo .wrap { position: relative; }
.demo .h2 { margin-bottom: 1rem; }
.demo__lede { color: #c9d2e5; max-width: 40rem; margin-bottom: 2.25rem; }

.tabs { display: inline-flex; gap: .35rem; padding: .35rem; border-radius: 14px; background: var(--night-2); border: 1px solid var(--wire); margin-bottom: 2.75rem; }
.tabs button { font: 600 .95rem var(--body); color: var(--mist); background: transparent; border: 0; padding: .65rem 1.15rem; border-radius: 10px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }

.flow { position: relative; }
.flow__wire { position: absolute; left: 12.5%; right: 12.5%; top: 2.1rem; width: 75%; height: 8px; overflow: visible; }
.flow__wire line { stroke: rgba(71,212,255,.35); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }
.flow__spark { position: absolute; top: calc(2.1rem - 2px); left: 12.5%; width: 12px; height: 12px; margin: -4px 0 0 -6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 18px 4px rgba(71,212,255,.65); }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.node { display: flex; flex-direction: column; align-items: center; text-align: center; }
.node__copy { display: grid; justify-items: inherit; }
.node__icon {
  width: 4.2rem; height: 4.2rem; border-radius: 16px; margin-bottom: 1.1rem;
  background: var(--night-2); border: 1px solid rgba(71,212,255,.3);
  display: grid; place-items: center; position: relative; transition: border-color .3s ease, box-shadow .3s ease;
}
.node__icon::before { content: ""; width: 1.5rem; height: 1.5rem; background: var(--signal); opacity: .9; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.node.is-live .node__icon { border-color: var(--signal); box-shadow: 0 0 0 6px rgba(71,212,255,.12), 0 0 30px -4px rgba(71,212,255,.6); }
.node:nth-child(1) .node__icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9z'/%3E%3C/svg%3E"); }
.node:nth-child(2) .node__icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.node:nth-child(3) .node__icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13M22 2l-7 20-4-9-9-4z'/%3E%3C/svg%3E"); }
.node:nth-child(4) .node__icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.node__trigger { font-size: .8rem; font-weight: 600; color: var(--signal); margin-bottom: .35rem; }
.node__text { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.3; max-width: 15rem; min-height: 2.6em; }

/* Process */
.process { padding: clamp(5rem, 9vw, 7.5rem) 0; }
.process__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 1.2rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: linear-gradient(var(--flare), var(--signal)); opacity: .5; }
.step { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.25rem; padding: .9rem 0; position: relative; }
.step__num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1rem; z-index: 1; }
.step:nth-child(2) .step__num { background: var(--flare); border-color: var(--flare); }
.step h3 { margin: .3rem 0 .3rem; }
.step p { color: var(--slate); max-width: 36rem; }
.photo--tall { aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -30px rgba(14,19,36,.45); }

/* About */
.about { background: linear-gradient(180deg, var(--night) 0%, #0d1530 100%); color: #fff; padding: clamp(5rem, 9vw, 7.5rem) 0; }
.about__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.photo--about { aspect-ratio: 5 / 4; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.about__body { display: grid; gap: 1.25rem; }
.about__body .h2 { margin-bottom: .25rem; }
.about__body > p { color: #c9d2e5; }
.record { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.record li { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 12px; background: var(--night-2); border: 1px solid var(--wire); font-weight: 500; }
.record li::before { content: ""; flex: none; width: .55rem; height: .55rem; margin-top: .55rem; border-radius: 2px; background: var(--flare); transform: rotate(45deg); }

/* Pricing */
.pricing { padding: clamp(5rem, 9vw, 7.5rem) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1.25rem; align-items: stretch; }
.plan { background: #fff; border: 1px solid #e3e7ef; border-radius: var(--radius); padding: 1.75rem; }
.plan--featured { border-color: var(--flare); box-shadow: 0 20px 40px -24px rgba(255,94,26,.55); }
.plan--support { background: var(--night); color: #fff; border-color: var(--night); }
.plan h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.plan__price { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 3.4vw, 2.8rem); letter-spacing: -.02em; line-height: 1; margin-bottom: .6rem; }
.plan__price span { font-size: .42em; font-weight: 700; color: var(--mist); letter-spacing: 0; }
.plan__price--second { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--wire); }
.plan__for { color: var(--slate); font-size: .95rem; }
.plan--support .plan__for { color: var(--mist); }
.pricing__notes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; margin-top: 1.25rem; align-items: start; }
.pricing__notes > p:first-child { color: var(--slate); font-size: .95rem; }
.founding { background: #fff3ec; border: 1px solid #ffd2bd; border-radius: 12px; padding: 1rem 1.2rem; font-size: .95rem; }

/* FAQ */
.faq { padding: 0 0 clamp(5rem, 9vw, 7.5rem); }
.faq__layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem 4rem; }
.faq__list { display: grid; gap: .75rem; }
details { background: #fff; border: 1px solid #e3e7ef; border-radius: 14px; }
summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.35; padding: 1.15rem 3.25rem 1.15rem 1.35rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.4rem;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.35rem 1.25rem; color: var(--slate); }

/* Closer */
.closer { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; }
.closer__glow { position: absolute; left: 50%; top: 100%; width: 80rem; height: 40rem; transform: translate(-50%, -55%); background: radial-gradient(closest-side, rgba(255,94,26,.45), rgba(71,212,255,.12) 60%, transparent); pointer-events: none; }
.closer__inner { position: relative; display: grid; justify-items: center; gap: 1.25rem; }
.closer__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.03em; max-width: 16ch; }
.closer p { color: #c9d2e5; margin-bottom: .75rem; }

/* Footer */
.foot { background: #070c1a; color: var(--mist); font-size: .92rem; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.foot .wordmark { color: #fff; font-size: 1.05rem; margin-right: auto; }

/* Narrow screens */
@media (max-width: 960px) {
  .bar nav { display: none; }
  .bar .btn--small { margin-left: auto; }
  .hero__inner, .process__layout, .about__layout, .faq__layout { grid-template-columns: 1fr; }
  .runlog { left: 1rem; bottom: -1.5rem; }
  .industries__grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--support { grid-column: 1 / -1; }
  .pricing__notes { grid-template-columns: 1fr; }
  .photo--tall { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .industries__grid, .plans { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .flow__wire, .flow__spark { display: none; }
  .node { flex-direction: row; text-align: left; align-items: center; gap: 1rem; }
  .node__icon { margin: 0; flex: none; width: 3.4rem; height: 3.4rem; }
  .node__trigger { margin-bottom: .1rem; }
  .node__text { min-height: 0; }
  .node__copy { min-width: 0; }
  .hero__actions .btn { width: 100%; }
  .runlog { position: relative; left: auto; bottom: auto; width: auto; margin: -2.5rem .75rem 0; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: .65rem .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .btn, .btn:hover { transform: none; transition: none; }
}
