/* basyc.studio — the soft-mesh language of Habyt, Fitnys and Globyl, on the web:
   grey canvas, white squircle cards, blurred colour-mesh heroes, dot-matrix numerals, one lime accent. */

@font-face { font-family: Urbanist; src: url(fonts/urbanist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Doto; src: url(fonts/doto-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --canvas: #E7E7EA; --card: #FFFFFF; --card2: #F4F4F6;
  --ink: #0C0C0E; --ink2: #6E6E75; --ink3: #B4B4BA;
  --line: rgba(0,0,0,.08); --inverse: #111113; --on-inverse: #FFFFFF;
  --lime: #D6F35A; --lime-deep: #8FD14F;
  --r-card: 30px; --r-hero: 36px; --pad: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -28px rgba(20,20,40,.35);
  --dot: #8FD14F; --phone: #0C0C0E; --show-light: block; --show-dark: none;
  --hero-bg-dark:
    radial-gradient(55% 45% at 85% 10%, rgba(214,243,90,.55), transparent 70%),
    radial-gradient(60% 55% at 0% 100%, rgba(100,210,255,.45), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(255,90,168,.40), transparent 70%),
    linear-gradient(160deg, #30323E, #16171C);
  --hero-bg:
    radial-gradient(55% 50% at 85% 8%, rgba(214,243,90,.85), transparent 70%),
    radial-gradient(60% 55% at 0% 100%, rgba(110,190,255,.55), transparent 72%),
    radial-gradient(50% 50% at 100% 100%, rgba(255,120,185,.45), transparent 72%),
    linear-gradient(160deg, #FFFFFF, #EEEEF3);
  --hero-ink: #0C0C0E;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0E0E10; --card: #1B1B1E; --card2: #232327;
    --ink: #F4F4F6; --ink2: #9A9AA2; --ink3: #55555C;
    --line: rgba(255,255,255,.09); --inverse: #F4F4F6; --on-inverse: #0C0C0E;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -28px rgba(0,0,0,.8);
    --dot: #D6F35A; --phone: #2A2A2F; --show-light: none; --show-dark: block;
    --hero-bg: var(--hero-bg-dark); --hero-ink: #FFFFFF;
  }
}
:root[data-theme="dark"] {
    --canvas: #0E0E10; --card: #1B1B1E; --card2: #232327;
    --ink: #F4F4F6; --ink2: #9A9AA2; --ink3: #55555C;
    --line: rgba(255,255,255,.09); --inverse: #F4F4F6; --on-inverse: #0C0C0E;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px -28px rgba(0,0,0,.8);
    --dot: #D6F35A; --phone: #2A2A2F; --show-light: none; --show-dark: block;
    --hero-bg: var(--hero-bg-dark); --hero-ink: #FFFFFF;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.5 Urbanist, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.dot { font-family: Doto, ui-monospace, monospace; font-weight: 900; letter-spacing: -.02em; line-height: .9; }
.lbl { font-size: 14px; font-weight: 600; color: var(--ink2); }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 10px 16px; z-index: 10; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.on-light { display: var(--show-light); }
.on-dark { display: var(--show-dark); }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 8px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand i { font-style: normal; color: var(--ink2); font-weight: 400; }
.mark-dot { fill: var(--dot); }
.theme { display: none; gap: 2px; padding: 4px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); }
.js .theme { display: inline-flex; }
.theme button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink2); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme button:hover { color: var(--ink); background: var(--card2); }
.theme button[aria-pressed="true"] { background: var(--inverse); color: var(--on-inverse); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- screen title (like the apps: grey label + light large title) ---------- */
.title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 34px 6px 18px; }
.title h1, .title h2 { font-weight: 300; letter-spacing: -.03em; line-height: 1; margin: 6px 0 0; }
.title h1 { font-size: clamp(48px, 7vw, 88px); }
.title h2 { font-size: clamp(32px, 3.6vw, 42px); }
.count { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 99px; background: var(--card); display: grid; place-items: center; font-weight: 600; box-shadow: var(--shadow); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 99px; background: var(--lime); color: #0C0C0E; font-weight: 700; text-decoration: none; white-space: nowrap; }
.chip:hover { filter: brightness(.96); }

/* ---------- hero: mesh card, app icons orbiting the lime dot ---------- */
.mesh { position: relative; overflow: hidden; isolation: isolate; color: #fff; border-radius: var(--r-hero); }
.mesh::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -30px 60px -30px rgba(0,0,0,.18); }
.hero { background: var(--hero-bg); color: var(--hero-ink); min-height: 360px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: clamp(28px, 4vw, 52px); }
.hero .lbl { color: color-mix(in srgb, var(--hero-ink) 65%, transparent); }
.hero .big { font-size: clamp(96px, 13vw, 156px); margin: 12px 0 8px -4px; }
.hero .sub { font-size: clamp(20px, 2vw, 24px); font-weight: 500; }
.orbit { position: relative; width: min(100%, 340px); aspect-ratio: 1; justify-self: center; }
.orbit svg.rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit .spin { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.orbit a { position: absolute; width: 23%; aspect-ratio: 1; translate: -50% -50%; border-radius: 23%; overflow: hidden; box-shadow: 0 14px 28px -12px rgba(0,0,0,.5); animation: spin 80s linear infinite reverse; transition: scale .2s; }
.orbit a:hover { scale: 1.08; }
.orbit a img { width: 100%; height: 100%; }
@keyframes spin { to { rotate: 360deg; } }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 10px; } .orbit { width: min(100%, 320px); } }

/* ---------- facts: one card, three columns (like Streak · Volume · Time) ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 8px; margin-top: 10px; }
.facts > div { padding: 4px 22px; display: grid; gap: 6px; }
.facts > div + div { border-left: 1.5px dashed var(--line); }
.facts .lbl { display: flex; align-items: center; gap: 8px; }
.facts .lbl .ico { width: 18px; height: 18px; color: var(--lime-deep); }
.facts .dot { font-size: clamp(48px, 5.5vw, 66px); }
.facts .dot small { font-family: Urbanist; font-size: 15px; font-weight: 600; color: var(--ink2); margin-left: 6px; letter-spacing: 0; }
@media (max-width: 560px) { .facts > div { padding: 4px 12px; } .facts .dot small { display: block; margin: 6px 0 0; } }

/* ---------- app tiles ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; padding: 22px 22px 0; min-height: 620px; border-radius: var(--r-card); }
.tile .row { display: flex; align-items: center; justify-content: space-between; }
.tile .app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.soon { font-size: 13px; font-weight: 700; padding: 8px 13px; border-radius: 99px; background: var(--lime); color: #0C0C0E; }
.tile h3 { font-size: clamp(36px, 3.6vw, 44px); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin: 26px 0 6px; }
.tile .tag { margin: 0; font-size: 18px; font-weight: 500; color: rgba(255,255,255,.85); }
.feats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 6px; }
.feats li { display: grid; justify-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); text-align: center; }
.feats li span { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4); }
.peek { margin: auto -2px 0; padding-top: 24px; height: 300px; overflow: hidden; display: flex; justify-content: center; }
.peek .phone { width: 78%; height: max-content; border-radius: 34px 34px 0 0; padding: 7px 7px 0; background: var(--phone); box-shadow: 0 -10px 40px -20px rgba(0,0,0,.45); }
.peek img { border-radius: 28px 28px 0 0; width: 100%; }
@media (max-width: 960px) { .apps { grid-template-columns: 1fr; } .tile { min-height: 0; } .peek { height: 340px; } .peek .phone { width: min(78%, 300px); } }

.habyt  { background: radial-gradient(60% 55% at 0% 0%, #FFC24B, transparent 70%), radial-gradient(70% 60% at 100% 20%, #FF4F7E, transparent 70%), radial-gradient(70% 60% at 85% 100%, #B455E8, transparent 70%), linear-gradient(160deg, #FF9F43, #E8478F 55%, #A04BD8); }
.fitnys { background: radial-gradient(60% 55% at 0% 0%, #4FD96B, transparent 70%), radial-gradient(70% 60% at 100% 35%, #12C9BF, transparent 70%), radial-gradient(70% 60% at 90% 100%, #1477E6, transparent 70%), linear-gradient(165deg, #3CCB6A, #14B8B0 50%, #1A6FE0); }
.globyl { background: radial-gradient(60% 55% at 100% 0%, #BFE6FF, transparent 70%), radial-gradient(70% 60% at 0% 60%, #4FA3FF, transparent 70%), radial-gradient(70% 60% at 50% 100%, #0B4FB8, transparent 70%), linear-gradient(170deg, #7EC2FF, #2A84EA 50%, #0D57C2); }

/* ---------- tile -> details ---------- */
.tile { position: relative; }
.acts { display: flex; align-items: center; gap: 8px; }
.more { width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: #0C0C0E; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.more .ico { transition: rotate .25s; }
.more::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.tile:hover .more { background: #fff; color: #0C0C0E; }
.tile.is-selected .more { background: var(--lime); color: #0C0C0E; }
.tile.is-selected .more .ico { rotate: 180deg; }
.tile { transition: translate .2s, box-shadow .2s; }
.tile:hover { translate: 0 -3px; }
.tile.is-selected { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 6px var(--ink); }
.tile:has(.more:focus-visible) { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 6px var(--lime-deep); }
.more:focus-visible { outline: none; }

/* ---------- details ---------- */
.details { margin-top: 10px; display: grid; gap: 10px; }
.apps > .details { margin: 0; }
.detail { padding: clamp(22px, 3vw, 34px); scroll-margin-top: 16px; }
.has-details .detail { animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; translate: 0 12px; } }
.d-head { display: flex; align-items: center; gap: 14px; }
.d-head .app-icon { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 10px 22px -10px rgba(0,0,0,.45); }
.d-head h3 { font-size: clamp(30px, 3vw, 38px); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin: 4px 0 0; }
.d-head .soon { margin-left: auto; }
.d-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(20px, 3vw, 40px); margin-top: 26px; align-items: center; }
.d-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.d-feats li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.d-feats b { display: block; font-weight: 600; font-size: 18px; }
.d-feats li span:not(.fi) { color: var(--ink2); font-size: 15px; }
.fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.fi .ico { width: 20px; height: 20px; }
.d-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.4vw, 16px); align-items: start; }
.d-shots .phone { margin: 0; border-radius: 26px; padding: 5px; background: var(--phone); box-shadow: 0 24px 40px -26px rgba(10,10,30,.5); }
.d-shots .phone img { border-radius: 21px; width: 100%; }
.d-shots .phone:nth-child(2) { translate: 0 22px; }
.d-chips { list-style: none; margin: 40px 0 0; padding: 18px 0 0; border-top: 1.5px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.d-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--card2); font-size: 14px; font-weight: 600; }
.d-chips .ico { width: 17px; height: 17px; color: var(--lime-deep); }
@media (max-width: 860px) {
  .d-body { grid-template-columns: 1fr; }
  .d-shots { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .d-shots .phone { scroll-snap-align: start; }
  .d-shots .phone:nth-child(2) { translate: none; }
}

/* ---------- contact ---------- */
.contact { margin-top: 10px; padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: #0C0C0E;
  background: radial-gradient(70% 90% at 100% 0%, #F2FFB8, transparent 70%), radial-gradient(60% 90% at 0% 100%, #A9D63E, transparent 70%), linear-gradient(160deg, #DCF56A, #BFE34A); }
.contact::after { box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.contact .say { display: flex; align-items: center; gap: 16px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; letter-spacing: -.03em; margin: 0; }
.contact .say span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.45); border: 1px solid rgba(0,0,0,.08); }
.mail { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 18px; padding: 10px 10px 10px 22px; border-radius: 99px; background: #0C0C0E; color: #fff; }
.mail b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0C0C0E; }
.mail:hover { filter: brightness(1.2); }
button.mail { border: 0; cursor: pointer; font-family: inherit; min-width: 252px; justify-content: space-between; }
.mail .i-done, .mail.copied .i-copy { display: none; }
.mail.copied .i-done { display: block; }
.mail b .ico { width: 18px; height: 18px; stroke-width: 2.2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- footer ---------- */
.foot-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding: 34px 6px 44px; color: var(--ink2); font-size: 15px; }
.foot-bar nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-bar a { text-decoration: none; }
.foot-bar a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- text pages ---------- */
.doc { padding: clamp(26px, 4vw, 56px); margin-top: 18px; max-width: 820px; }
.doc h1 { font-weight: 300; letter-spacing: -.03em; line-height: 1; font-size: clamp(38px, 5vw, 56px); margin: 0 0 8px; }
.doc .updated { color: var(--ink2); margin: 0 0 32px; }
.doc h2 { font-size: 24px; font-weight: 500; margin: 36px 0 8px; letter-spacing: -.01em; }
.doc .todo { background: color-mix(in srgb, var(--lime) 55%, transparent); padding: 0 4px; border-radius: 4px; color: #0C0C0E; }
.doc address { font-style: normal; }
.lost { margin-top: 18px; padding: clamp(28px, 4vw, 52px); min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; background: var(--hero-bg); color: var(--hero-ink); }
.lost .big { font-size: clamp(110px, 15vw, 180px); margin-top: 10px; }
.lost .mail { align-self: flex-start; }
