/* Arkand Labs — cinematic dark theme with motion. Motion is disabled for prefers-reduced-motion. */
:root {
  --bg: #0a0e11;
  --bg-2: #10161b;
  --surface: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.12);
  --ink: #f3f5f6;
  --body: #c3ccd3;
  --muted: #9aa7b1;
  --faint: #7f8b95;
  --glow: #3fb0d0;
  --glow-rgb: 63,176,208;
  --teal: #175b72;
  --radius: 22px;
  --wrap: 1180px;
  --header: 72px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--body); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--glow); text-underline-offset: 3px; }
a:hover { color: #7fd0e6; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
::selection { background: rgba(var(--glow-rgb), .35); color: #fff; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10,14,17,.72); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: .14em; font-size: 14px; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; filter: invert(1) hue-rotate(180deg); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 15px; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

/* Shared type and blocks */
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--glow); margin: 0 0 20px; }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--body); max-width: 60ch; margin: 0 0 28px; }
.fine { font-size: 13px; color: var(--faint); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(var(--glow-rgb), .12); color: var(--glow); }
.section { padding: 110px 0; position: relative; }
.section-alt { margin: 0 20px; border-radius: 36px; background: radial-gradient(ellipse 55% 60% at 12% 0%, rgba(var(--glow-rgb), .10), transparent 70%), linear-gradient(165deg, #121c23, #0c1216); box-shadow: 0 40px 120px rgba(0,0,0,.45); }
.section h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.03em; }
.section-intro { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; border: 1.5px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { color: var(--bg); background: #fff; }
.btn-ghost { background: rgba(255,255,255,.07); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--ink); }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.point h3 { font-size: 20px; margin-bottom: 8px; }
.point p { margin: 0; color: var(--muted); }
.point .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(var(--glow-rgb), .14); color: var(--glow); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--muted); }

/* ---------- Home ---------- */
.home-hero { position: relative; min-height: calc(100svh - var(--header)); display: flex; align-items: flex-end; overflow: hidden; padding: 96px 0 64px; isolation: isolate; }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.home-hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -240px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow-rgb), .30), rgba(23,91,114,.12) 45%, transparent 70%); z-index: -3; animation: breathe 9s ease-in-out infinite; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg)); z-index: -1; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .8; } }

.mark { position: absolute; right: 5%; top: 10%; width: min(44vw, 540px); z-index: -1; overflow: visible; }
.mark .edge { stroke: rgba(243,245,246,.22); stroke-width: 1.5; fill: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s var(--ease) .3s forwards; }
.mark .edge.soft { stroke: rgba(243,245,246,.12); animation-delay: .6s; }
.mark .core { fill: var(--glow); animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mark .halo { fill: rgba(var(--glow-rgb), .16); animation: pulse 3.2s ease-in-out infinite reverse; transform-box: fill-box; transform-origin: center; }
.mark .orbit { fill: none; stroke: rgba(var(--glow-rgb), .45); stroke-width: 1.2; stroke-dasharray: 3 9; transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
.mark .orbit.o2 { stroke: rgba(243,245,246,.18); stroke-dasharray: 1 14; animation-duration: 40s; animation-direction: reverse; }
.mark .sat { fill: #bfeaf5; transform-box: view-box; transform-origin: 210px 300px; animation: spin 12s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { transform: scale(1.18); opacity: .75; } }
@keyframes spin { to { transform: rotate(360deg); } }

.display { font-size: clamp(52px, 10vw, 138px); line-height: .92; letter-spacing: -.045em; margin: 0 0 28px; font-weight: 800; max-width: 10ch; }
.display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.display .w > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.display .w:nth-child(2) > span { animation-delay: .12s; }
.display .w:nth-child(3) > span { animation-delay: .24s; }
.display .w:nth-child(4) > span { animation-delay: .36s; }
.display .outline > span { color: transparent; background: linear-gradient(100deg, #7fcfe6 0%, var(--glow) 30%, #e4f7fc 50%, var(--glow) 70%, #7fcfe6 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; animation: rise 1s var(--ease) .36s forwards, sweep 8s linear 1.4s infinite; }
@keyframes rise { to { transform: none; } }
@keyframes sweep { to { background-position: -250% 0; } }
.fade-in { opacity: 0; animation: fadeUp 1s var(--ease) .55s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; position: relative; opacity: 0; animation: fadeUp 1s var(--ease) .8s forwards; }
.timeline div { padding: 22px 24px 0 0; position: relative; }
.timeline div::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: rgba(var(--glow-rgb), .35); }
.timeline div:first-child::before { background: var(--glow); }
.timeline div:first-child::after { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--glow); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.timeline b { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.timeline span { font-size: 18px; font-weight: 600; color: var(--ink); }


.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }
.section-head h2 { margin: 0; max-width: 14ch; }
.section-head > p { color: var(--muted); max-width: 44ch; margin: 0; }
.section-head .eyebrow { margin-bottom: 14px; }

.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.chapter { --mx: 50%; --my: 0%; position: relative; padding: 38px 36px 40px; border-radius: var(--radius); background: linear-gradient(160deg, #151f26, #0e151a); box-shadow: 0 24px 60px rgba(0,0,0,.45); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.chapter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(var(--glow-rgb), .16), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.chapter:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.chapter:hover::before { opacity: 1; }
.chapter > * { position: relative; }
.chapter .n { font-size: 13px; letter-spacing: .2em; color: var(--glow); font-weight: 600; }
.chapter h3 { font-size: 30px; letter-spacing: -.02em; margin: 12px 0; }
.chapter p { color: var(--muted); margin: 0; max-width: 46ch; }

.quote { background: transparent; text-align: center; padding: 130px 0; position: relative; overflow: hidden; }
.quote::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 55% at 50% 50%, rgba(var(--glow-rgb), .13), transparent 72%); animation: breathe 9s ease-in-out infinite; }
.quote p { position: relative; font-size: clamp(30px, 5vw, 64px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; color: var(--ink); margin: 0 auto; max-width: 18ch; }
.quote em { font-style: normal; background: linear-gradient(90deg, var(--glow), #bfeaf5, var(--glow)) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 6s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.quote small { position: relative; display: block; margin-top: 26px; color: var(--muted); font-size: 15px; letter-spacing: .06em; }

.future { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { --mx: 70%; --my: 80%; position: relative; min-height: 320px; border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: linear-gradient(160deg, #18252e, #0d1317); box-shadow: 0 24px 60px rgba(0,0,0,.45); transition: transform .4s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--glow-rgb), .26), transparent 60%); transition: opacity .4s; }
.tile:hover { transform: translateY(-6px); }
.tile svg { position: absolute; top: 28px; left: 30px; width: 40px; height: 40px; color: var(--glow); }
.tile h3 { position: relative; font-size: 26px; margin: 0 0 8px; letter-spacing: -.02em; }
.tile p { position: relative; margin: 0; color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product { --mx: 50%; --my: 0%; position: relative; display: flex; gap: 20px; padding: 28px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); box-shadow: 0 18px 50px rgba(0,0,0,.35); overflow: hidden; }
.product::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(var(--glow-rgb), .14), transparent 60%); pointer-events: none; }

.product > * { position: relative; }
.product img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.product h3 { margin: 8px 0 6px; font-size: 22px; }
.product p { margin: 0 0 10px; color: var(--muted); }
.product .links { display: flex; gap: 18px; font-weight: 600; font-size: 15px; flex-wrap: wrap; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principles h3 { font-size: 20px; margin: 0 0 8px; }
.principles p { margin: 0; color: var(--muted); }
.principles .n { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: transparent; background: linear-gradient(180deg, var(--glow), rgba(var(--glow-rgb), .2)); -webkit-background-clip: text; background-clip: text; margin-bottom: 10px; }

.cta { padding: 140px 0; text-align: center; position: relative; overflow: hidden; background: radial-gradient(ellipse 55% 60% at 50% 55%, rgba(var(--glow-rgb), .16), transparent 72%); }
.cta h2 { margin: 0 auto 16px; max-width: 16ch; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.03em; }
.cta p { color: var(--muted); margin: 0; }
.cta .mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 16px 30px; border-radius: 999px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; color: var(--bg); background: var(--ink); text-decoration: none; box-shadow: 0 16px 40px rgba(0,0,0,.3); transition: transform .3s var(--ease), box-shadow .3s; }
.cta .mail:hover { color: var(--bg); transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.company { padding-top: 0; }
.company .eyebrow { margin-bottom: 28px; }
.band { margin: 0 20px; border-radius: 36px; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(165deg, #121c23 0%, #0d1419 60%, #0b1115 100%); box-shadow: 0 40px 120px rgba(0,0,0,.5); }
.band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 12% 0%, rgba(var(--glow-rgb), .12), transparent 70%); pointer-events: none; z-index: -1; }
.band-products { padding: 96px 0 100px; }
.band-teal { margin-bottom: 20px; background: radial-gradient(circle at 85% 10%, rgba(120,205,228,.35), transparent 45%), linear-gradient(160deg, #1b6a84, var(--teal) 45%, #0c3442); }
.band-teal::after { background: radial-gradient(ellipse 50% 60% at 20% 110%, rgba(10,14,17,.45), transparent 70%); }
.band-teal h2 { color: #fff; }
.band-teal p { color: #d4ecf3; }
.band-teal .mail, .band-teal .mail:hover { color: #0c3442; background: #fff; }

/* Scroll reveal (only when JavaScript runs; content stays visible otherwise) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal].d1 { transition-delay: .1s; }
.js [data-reveal].d2 { transition-delay: .2s; }
.js [data-reveal].d3 { transition-delay: .3s; }

/* ---------- Long-form pages (legal, contact) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(36px, 5.4vw, 56px); letter-spacing: -.03em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin-top: 48px; padding-top: 8px; }
.doc h3 { font-size: 19px; margin-top: 28px; }
.doc p, .doc li { color: var(--body); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc b, .doc strong { color: var(--ink); }
.summary { background: rgba(255,255,255,.045); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; padding-top: 0; font-size: 20px; }
.summary ul { margin: 0; }
.toc { background: rgba(255,255,255,.025); border-radius: var(--radius); padding: 18px 26px; margin: 28px 0 0; color: var(--ink); }
.toc ol { margin: 8px 0 0; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; }
tbody tr:nth-child(odd) td { background: rgba(255,255,255,.025); }
table { border-radius: 14px; overflow: hidden; }
th { background: var(--surface); font-weight: 600; color: var(--ink); }
address { font-style: normal; }
.contact-block { background: rgba(var(--glow-rgb), .07); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
.contact-block p { margin: 6px 0; }

/* ---------- Pawkey product pages: warm accent on the same dark base ---------- */
.pk { --glow: #e3a868; --glow-rgb: 227,168,104; }
.pk .hero { position: relative; padding: 88px 0 72px; overflow: hidden; isolation: isolate; }
.pk .hero::before { content: ""; position: absolute; width: 760px; height: 760px; left: -220px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(227,168,104,.20), transparent 65%); z-index: -1; animation: breathe 10s ease-in-out infinite; }
.pk-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.pk-hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1; letter-spacing: -.035em; }
.pk-hero .app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pk-hero .app-id img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 8px 30px rgba(227,168,104,.25); }
.pk-hero .app-id span { font-size: 26px; font-weight: 700; color: var(--ink); }
.stage { background: #fff; border-radius: 26px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.faq details { background: rgba(255,255,255,.035); border-radius: 16px; padding: 2px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--ink); }
.faq details p, .faq details ul { margin: 0 0 16px; color: var(--muted); }
.faq details b { color: var(--ink); }

/* Footer */
.site-footer { background: linear-gradient(180deg, #10181d, #0b1014); border-radius: 36px 36px 0 0; margin-top: 20px; padding: 52px 0 60px; font-size: 14px; color: var(--faint); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 0 0 6px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-links a { color: var(--body); text-decoration: none; }
.footer-links a:hover { color: var(--glow); text-decoration: underline; }

@media (max-width: 820px) {
  .band, .section-alt { margin: 0 8px; border-radius: 26px; }
  .band-teal { margin-bottom: 8px; }
  .site-footer { border-radius: 26px 26px 0 0; }
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .nav a { padding: 6px 9px; font-size: 14px; }
  .home-hero { padding: 56px 0 48px; }
  .mark { opacity: .4; right: -22%; top: 6%; width: 95vw; }
  .timeline { grid-template-columns: 1fr; }
  .timeline div { padding: 18px 0 14px 26px; }
  .timeline div::before, .timeline div:first-child::after { left: -5px; top: 24px; }
  .chapters, .future, .products, .principles, .pk-hero, .footer-grid { grid-template-columns: 1fr; }
  .chapter { padding: 30px 24px 32px; }
  .section { padding: 80px 0; }
  .toc ol { columns: 1; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}

@media (max-width: 420px) {
  .brand { font-size: 13px; letter-spacing: .1em; }
  .nav { gap: 0; }
  .nav a { padding: 6px 7px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
