/* Octopus Live site (ruwaidportfolio.online/octopus-live/): dark, electric, the app's own dial colours */
:root {
  --bg: #07080c;
  --ink: #f4f4f6;
  --muted: #9a9cab;
  --line: rgb(255 255 255 / .09);
  --card: rgb(255 255 255 / .035);
  --pink: #f472b6;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --orange: #fb923c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
svg { display: block; }
code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; white-space: nowrap; }
.hint code { white-space: normal; word-break: break-all; }

/* Background: sweeping light beams over a faint grid */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.beam { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .5; }
.b1 { background: radial-gradient(circle, rgb(244 114 182 / .55), transparent 65%); top: -35vmax; right: -20vmax; animation: sweep 18s ease-in-out infinite alternate; }
.b2 { background: radial-gradient(circle, rgb(251 191 36 / .35), transparent 65%); bottom: -40vmax; left: -25vmax; animation: sweep 24s ease-in-out infinite alternate-reverse; }
@keyframes sweep { to { transform: translate(-10vmax, 8vmax) rotate(25deg) scale(1.1); } }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
  animation: gridmove 30s linear infinite;
}
@keyframes gridmove { to { background-position: 56px 56px; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  max-width: 1160px; margin: 0 auto; padding: 14px 20px; padding-top: max(14px, env(safe-area-inset-top));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px "Bricolage Grotesque", Inter, sans-serif; letter-spacing: -.01em; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgb(244 114 182 / .14); box-shadow: inset 0 0 0 1px rgb(244 114 182 / .35); }
.mark svg { width: 16px; height: 16px; fill: var(--pink); }
.nav nav { display: flex; align-items: center; gap: 8px; }
.icon-link { padding: 8px; border-radius: 10px; color: var(--muted); transition: color .2s; }
.icon-link:hover { color: var(--ink); }
.icon-link svg { width: 20px; height: 20px; fill: currentColor; }
.pill { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); transition: transform .2s; }
.pill:hover { transform: translateY(-1px); }

/* Hero */
.hero {
  max-width: 1160px; margin: 0 auto; padding: 36px 20px 90px; min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
}
.tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(52 211 153 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(52 211 153 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); } }
h1, h2 { font-family: "Bricolage Grotesque", Inter, sans-serif; font-weight: 800; letter-spacing: -.035em; margin: 0; }
h1 { font-size: clamp(52px, 8.4vw, 104px); line-height: .92; }
.live {
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red), var(--pink), var(--green));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: flow 8s linear infinite;
}
@keyframes flow { to { background-position: 300% 0; } }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 31em; margin: 22px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 14px; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--pink); color: #1a0510; box-shadow: 0 10px 30px -10px rgb(244 114 182 / .7); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgb(244 114 182 / .8); }
.btn.ghost { background: var(--card); border-color: var(--line); }
.btn.ghost:hover { border-color: rgb(255 255 255 / .3); }
.meta { margin: 24px 0 0; font-size: 13px; color: var(--muted); }

/* Android phone */
.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  position: relative; width: 300px; aspect-ratio: 9 / 19.5; padding: 9px; border-radius: 44px;
  background: linear-gradient(160deg, #2b2d35, #0d0e12 45%, #22242b);
  box-shadow: inset 0 0 0 1.5px #3a3c45, 0 0 0 1px rgb(0 0 0 / .6), 0 60px 90px -30px rgb(244 114 182 / .28), 0 40px 60px -30px #000;
  animation: hover 7s ease-in-out infinite;
}
@keyframes hover { 50% { transform: translateY(-12px) rotate(.6deg); } }
.key { position: absolute; right: -3px; width: 4px; border-radius: 2px; background: #2b2d35; }
.k1 { top: 20%; height: 9%; } .k2 { top: 33%; height: 15%; }
.display { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #0f1014; color: #f4f4f6; font-size: 11px; }
.sbar { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 20px; font-weight: 600; font-size: 11px; }
.cam { position: absolute; left: 50%; top: 11px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 2px #1d1e24; }
.sicons { display: flex; align-items: center; gap: 4px; }
.sicons i { width: 11px; height: 9px; background: #f4f4f6; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.sicons i + i { clip-path: polygon(50% 100%, 0 25%, 15% 10%, 50% 0, 85% 10%, 100% 25%); }
.sicons b { width: 18px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #f4f4f6 70%, #555 70%); }

.view { position: absolute; inset: 34px 0 62px; padding: 6px 14px 0; opacity: 0; transform: translateX(16px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.view.on { opacity: 1; transform: none; }
.apphead { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin: 4px 2px 10px; }
.apphead.plain { font-size: 18px; }
.mini { width: 22px; height: 22px; border-radius: 6px; background: rgb(244 114 182 / .16); display: grid; place-items: center; }
.mini svg { width: 12px; height: 12px; fill: var(--pink); }
.tile { background: #1a1b21; border: 1px solid #262730; border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; }
.tlabel { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 9px; font-weight: 700; letter-spacing: .12em; color: #a4a6b4; }
.tlabel svg { width: 11px; height: 11px; }
.amber { fill: var(--amber); }
.dialtile { padding-bottom: 12px; }
.dial { width: 100%; margin-top: 2px; }
.kw { font: 700 34px Inter, sans-serif; fill: #fff; letter-spacing: -.02em; }
.kw .unit { font-size: 14px; fill: #a4a6b4; }
.cost { margin-top: 4px; padding: 7px 10px; border-radius: 10px; background: #0f1014; border: 1px solid #262730; font-weight: 700; font-size: 12px; }
.gastile { display: flex; align-items: center; gap: 10px; }
.gastile .tlabel { writing-mode: vertical-rl; transform: rotate(180deg); }
.flame { width: 30px; height: 30px; fill: none; stroke: #6b6d7a; stroke-width: 1.8; transition: stroke .6s, filter .6s; }
.flame.on { stroke: var(--orange); filter: drop-shadow(0 0 6px rgb(251 146 60 / .7)); }
.gasval { font: 700 24px Inter, sans-serif; letter-spacing: -.02em; }
.gasval small { font-size: 11px; color: #a4a6b4; margin-left: 3px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile.small .tlabel { justify-content: flex-start; margin-bottom: 4px; }
.tile.small b { font-size: 17px; }
.tile.small small { color: #a4a6b4; font-size: 10px; }
.tile.wide { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; }
.lastread { margin: 10px 0 0; text-align: center; color: #6b6d7a; font-size: 10px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #1a1b21; border: 1px solid #262730; border-radius: 12px; padding: 3px; margin-bottom: 8px; text-align: center; color: #a4a6b4; font-weight: 600; }
.seg span { padding: 5px 0; border-radius: 9px; }
.seg .on { background: rgb(244 114 182 / .16); color: var(--pink); }
.sofar { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.sofar b { font-size: 20px; }
.sofar span { display: flex; align-items: center; gap: 4px; color: #a4a6b4; font-size: 10px; }
.sofar i { width: 7px; height: 7px; border-radius: 2px; margin-left: 4px; }
.g { background: var(--green); } .o { background: var(--orange); }
.chart { padding-top: 14px; }
.bars { display: flex; align-items: flex-end; gap: 1.5px; height: 110px; }
.bars span { flex: 1; border-radius: 2px 2px 0 0; background: var(--green); height: var(--h); transform-origin: bottom; transform: scaleY(0); transition: transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 14ms); }
.bars span.hi { background: var(--amber); }
.bars span.future { background: #262730; }
.view.on .bars span { transform: scaleY(1); }
.axis { display: flex; justify-content: space-between; margin-top: 5px; color: #6b6d7a; font-size: 9px; }
.peak { display: flex; justify-content: space-between; margin-top: 10px; padding: 7px 10px; border-radius: 10px; background: #0f1014; border: 1px solid #262730; }
.peak span { color: #a4a6b4; }

.tabs { position: absolute; inset: auto 0 0; height: 62px; padding: 6px 6px 14px; display: grid; grid-template-columns: repeat(4, 1fr); background: #15161b; border-top: 1px solid #262730; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 600; color: #8b8d9a; transition: color .4s; }
.tab svg { width: 30px; height: 18px; padding: 1px 7px; border-radius: 9px; fill: currentColor; transition: background .4s; }
.tab.on { color: var(--pink); }
.tab.on svg { background: rgb(244 114 182 / .18); }
.gesture { position: absolute; bottom: 5px; left: 50%; width: 90px; height: 3px; margin-left: -45px; border-radius: 3px; background: rgb(255 255 255 / .5); }
.caption { margin: 0; font-size: 12px; color: var(--muted); }

/* Features */
.features { max-width: 1160px; margin: 0 auto; padding: 0 20px 100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { display: flex; flex-direction: column; gap: 2px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / .2); }
.fi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.fi svg { width: 18px; height: 18px; fill: currentColor; }
.fi.pink { color: var(--pink); background: rgb(244 114 182 / .12); }
.fi.green { color: var(--green); background: rgb(52 211 153 / .12); }
.fi.amber { color: var(--amber); background: rgb(251 191 36 / .12); }
.fi.orange { color: var(--orange); background: rgb(251 146 60 / .12); }
.feature b { font-weight: 600; }
.feature > span:last-child { color: var(--muted); font-size: 14px; }

/* Steps */
.steps { max-width: 1160px; margin: 0 auto; padding: 0 20px 100px; }
.steps h2, .get h2 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1; margin-bottom: 30px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.steps li { padding: 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), transparent); }
.steps li > span { display: block; font: 800 14px "Bricolage Grotesque", sans-serif; color: var(--pink); margin-bottom: 14px; }
.steps li b { font-size: 18px; font-weight: 600; }
.steps li p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.steps a { color: var(--pink); }
.needs { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* Get */
.get { max-width: 900px; margin: 0 auto; padding: 0 20px 100px; text-align: center; scroll-margin-top: 70px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.card { padding: 28px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.chead { display: flex; align-items: center; gap: 10px; font: 700 22px "Bricolage Grotesque", sans-serif; }
.chead svg { width: 26px; height: 26px; fill: var(--green); }
.card p { margin: 6px 0 20px; color: var(--muted); }
.card .hint { margin: 18px 0 0; font-size: 13px; }
.card .hint b { color: var(--ink); font-weight: 600; }
.sums { margin: 20px auto 0; max-width: 640px; text-align: left; font-size: 12px; color: var(--muted); }
.sums summary { cursor: pointer; text-align: center; list-style: none; }
.sums summary::-webkit-details-marker { display: none; }
.sums summary:hover { color: var(--ink); }
.sums dl { margin: 12px 0 0; display: grid; gap: 4px; }
.sums dt { color: var(--ink); font-weight: 600; margin-top: 6px; }
.sums dd { margin: 0; font-family: ui-monospace, Menlo, monospace; word-break: break-all; }

footer { border-top: 1px solid var(--line); padding: 30px 20px calc(36px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 12px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 14px; margin-bottom: 14px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer p { max-width: 46em; margin: 0 auto; line-height: 1.6; }

/* Entrance and scroll animations (only when JavaScript runs) */
.js .rise { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 90ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; min-height: 0; gap: 44px; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .phone { width: 270px; }
  .cards { grid-template-columns: 1fr; }
  .features { gap: 10px; }
  .feature { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .beam, .grid, .phone, .live, .pulse { animation: none; }
  .js .rise, .js .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .view, .bars span { transition: none; }
}
