/* Cylix site styles. Light and dark follow the device setting. */

:root {
  --bg: #eef3f1;
  --blob-1: rgba(0, 181, 143, .30);
  --blob-2: rgba(70, 170, 255, .20);
  --blob-3: rgba(0, 181, 143, .14);
  --text: #0a1512;
  --muted: #4c5d56;
  --line: rgba(10, 40, 30, .10);
  --brand: #00896d;
  --brand-2: #00b58f;
  --warn: #b98100;
  --grad: linear-gradient(135deg, #1fcfa4 0%, #00806a 100%);
  --on-brand: #ffffff;
  --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .46) 100%);
  --glass-strong: rgba(250, 252, 251, .92);
  --glass-border: rgba(255, 255, 255, .9);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35);
  --glass-shadow: 0 1px 2px rgba(10, 40, 30, .06), 0 12px 36px rgba(10, 40, 30, .10);
  --sheen: linear-gradient(135deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 38%);
  --field-bg: rgba(255, 255, 255, .7);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1140px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060b09;
    --blob-1: rgba(0, 181, 143, .24);
    --blob-2: rgba(40, 120, 255, .13);
    --blob-3: rgba(0, 181, 143, .10);
    --text: #eef5f1;
    --muted: #97a8a0;
    --line: rgba(255, 255, 255, .08);
    --brand: #2fd9ae;
    --brand-2: #1fcfa4;
    --warn: #f5c518;
    --grad: linear-gradient(135deg, #7af2d3 0%, #00a383 100%);
    --on-brand: #03140f;
    --glass-bg: linear-gradient(150deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .035) 100%);
    --glass-strong: rgba(12, 20, 17, .93);
    --glass-border: rgba(255, 255, 255, .13);
    --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .20), inset 0 -1px 0 rgba(255, 255, 255, .04);
    --glass-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 44px rgba(0, 0, 0, .45);
    --sheen: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 40%);
    --field-bg: rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Soft colour behind the glass */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 8% 12%, var(--blob-1), transparent 70%),
    radial-gradient(34% 40% at 92% 28%, var(--blob-2), transparent 70%),
    radial-gradient(40% 40% at 70% 96%, var(--blob-1), transparent 70%),
    radial-gradient(30% 34% at 18% 78%, var(--blob-3), transparent 70%);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--glass-strong); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Liquid glass ---------- */
.glass-panel, .card, .app-card, .faq details, .form, .glass, .float-card, .summary-box,
.notice, .badge, .btn-ghost, .menu, .toc, .info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), var(--glass-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.card, .app-card, .form, .glass, .float-card, .summary-box, .info-card { position: relative; isolation: isolate; }
.card::after, .app-card::after, .form::after, .glass::after, .float-card::after, .summary-box::after, .info-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--sheen); z-index: -1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 8px 30px rgba(0, 0, 0, .06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 20px; width: auto; }
.logo:hover { opacity: .8; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--muted);
  background: none; border: 0; cursor: pointer;
  padding: 9px 13px; border-radius: 10px;
}
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li:focus-within > button { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"], .nav-links button[aria-current="page"] { color: var(--brand); }
.chev { width: 10px; height: 10px; transition: transform .2s; }
.has-menu:hover .chev, .has-menu.open .chev { transform: rotate(180deg); }

.menu {
  position: absolute; top: calc(100% + 6px); left: 50%; min-width: 250px;
  padding: 8px; border-radius: 16px; list-style: none; margin: 0;
  background: var(--glass-strong);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.menu a:hover { background: color-mix(in srgb, var(--brand-2) 12%, transparent); text-decoration: none; }
.menu a strong { display: block; font-size: .95rem; font-weight: 650; }
.menu a span { display: block; font-size: .83rem; color: var(--muted); line-height: 1.35; }

.nav-links > li > a.nav-cta, .nav-cta {
  display: inline-flex; align-items: center; margin-left: 8px;
  padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  background: var(--grad); color: var(--on-brand) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px color-mix(in srgb, var(--brand-2) 35%, transparent);
}
.nav-links > li > a.nav-cta:hover { text-decoration: none; filter: brightness(1.05); color: var(--on-brand); }

.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-hi);
  color: var(--text); align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 18px;
    background: var(--bg); box-shadow: 0 24px 40px rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 1.05rem; }
  .menu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0 0 6px 8px; display: none; }
  .has-menu.open .menu, .has-menu:hover .menu, .has-menu:focus-within .menu { transform: none; }
  .has-menu.open .menu { display: block; }
  .nav-links > li > a.nav-cta { margin: 10px 0 0; justify-content: center; padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1; color: var(--text);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary, .btn-accent {
  background: var(--grad); color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 28px color-mix(in srgb, var(--brand-2) 30%, transparent);
}
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); line-height: 1.15;
}
.store-badge svg { width: 26px; height: 26px; fill: currentColor; }
.store-badge small { display: block; font-size: .72rem; opacity: .75; font-weight: 500; }
.store-badge strong { display: block; font-size: 1.1rem; font-weight: 650; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lead { font-size: clamp(1.1rem, 2vw, 1.28rem); color: var(--muted); max-width: 38ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: var(--glass-shadow); margin-bottom: 22px; }
@media (max-width: 880px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-icon { margin-left: auto; margin-right: auto; }
}

.phone { width: min(320px, 78vw); margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .28)); }
.phone-wrap { position: relative; width: min(320px, 78vw); margin: 0 auto; }
.phone-wrap .phone { width: 100%; }
.float-card {
  position: absolute; left: -64px; bottom: 36%; display: flex; align-items: center; gap: 12px;
  border-radius: 18px; padding: 12px 16px; font-size: .85rem; line-height: 1.3; text-align: left;
  animation: float 7s ease-in-out -3.5s infinite;
}
.float-card strong { display: block; font-size: 1.05rem; }
.float-card span { color: var(--muted); }
.float-card.top { left: auto; right: -56px; top: 120px; bottom: auto; animation-delay: -1s; }
.float-card .ring { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--brand-2) 0 52%, var(--line) 52% 100%); }
.float-card .ring::after { content: ""; width: 32px; height: 32px; border-radius: 50%; background: var(--glass-strong); }
.float-card .tick { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--brand-2) 18%, transparent); color: var(--brand); }
.float-card .tick svg { width: 20px; height: 20px; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 1000px) { .float-card { left: -24px; } .float-card.top { right: -20px; } }
@media (max-width: 480px) { .float-card { left: -8px; padding: 10px 12px; } .float-card.top { right: -8px; top: 90px; } }
@media (prefers-reduced-motion: reduce) { .float-card, .glass { animation: none; } }

/* Studio home hero */
.studio-hero { position: relative; padding: 72px 0 56px; }
.studio-hero .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 32px; text-align: left; }
.studio-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 24px; }
.studio-hero .hero-actions { justify-content: flex-start; }
.app-chip { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 32px; color: var(--text); text-align: left; }
.app-chip:hover { text-decoration: none; }
.app-chip img { width: 56px; height: 56px; border-radius: 14px; box-shadow: var(--glass-shadow); }
.app-chip strong { display: block; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; }
.app-chip span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.app-chip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 10px var(--brand-2); }
@media (max-width: 880px) {
  .studio-hero .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .studio-hero .hero-actions { justify-content: center; }
}
/* the phone hangs below the circle, so leave room for it */
.orbit { position: relative; width: min(460px, 86vw); aspect-ratio: 1; margin: 0 auto calc(min(460px, 86vw) * .16); }
.orbit::before {
  content: ""; position: absolute; inset: 8% 0 0 0; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d4fbef 0%, #4fdcb8 45%, #008a6e 100%);
  box-shadow: 0 0 120px color-mix(in srgb, var(--brand-2) 40%, transparent);
}
.orbit .phone { position: absolute; left: 50%; top: -6%; width: 58%; transform: translateX(-50%) rotate(-6deg); }
.glass { position: absolute; z-index: 2; border-radius: 18px; padding: 14px 16px; font-size: .85rem; line-height: 1.35; animation: float 7s ease-in-out infinite; }
.glass strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.glass span { color: var(--muted); }
.glass.g1 { left: -6%; top: 52%; display: flex; gap: 12px; align-items: center; }
.glass.g1 img { width: 44px; height: 44px; border-radius: 11px; }
.glass.g1 strong { font-size: 1.05rem; }
.glass.g2 { right: -4%; bottom: 2%; animation-delay: -3.5s; }
@media (max-width: 880px) { .glass.g1 { left: 0; } .glass.g2 { right: 0; } }
.side-rail { position: absolute; left: 20px; top: 40px; bottom: 0; display: none; flex-direction: column; justify-content: space-around; }
.side-rail span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; font-weight: 700; letter-spacing: .18em; color: var(--muted); opacity: .7; }
@media (min-width: 1300px) { .side-rail { display: flex; } }
.badge-row { display: flex; align-items: center; gap: 14px; margin-top: 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border-radius: 999px; padding: 10px 20px; color: var(--muted); font-size: .95rem; }
.badge svg { width: 18px; height: 18px; }
@media (max-width: 880px) { .badge-row { flex-wrap: wrap; justify-content: center; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { border-radius: var(--radius); padding: 28px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px) scale(1.03); box-shadow: var(--glass-hi), 0 24px 56px rgba(0, 0, 0, .18); }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: color-mix(in srgb, var(--brand-2) 14%, transparent); color: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.icon svg { width: 24px; height: 24px; }
.icon.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }

.app-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; border-radius: 28px; padding: 28px; color: var(--text); transition: transform .2s ease; }
.app-card:hover { transform: translateY(-2px); text-decoration: none; }
.app-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.app-card p { color: var(--muted); margin: 0; }
.app-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--glass-shadow); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--brand-2) 16%, transparent); color: var(--brand); margin-bottom: 8px; }
.app-card .arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 6%, transparent); }
.app-card.soon { border-style: dashed; box-shadow: none; }
.app-card.soon:hover { transform: none; }
.placeholder-icon { width: 88px; height: 88px; border-radius: 22px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: 2rem; }
@media (max-width: 620px) {
  .app-card { grid-template-columns: auto 1fr; }
  .app-card .arrow { display: none; }
  .app-icon, .placeholder-icon { width: 64px; height: 64px; border-radius: 16px; }
}

.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 56px 32px; text-align: center;
  background: var(--grad); color: var(--on-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 20px 50px color-mix(in srgb, var(--brand-2) 25%, transparent);
}
.cta::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 80% 0%, rgba(255, 255, 255, .3), transparent 60%); }
.cta h2, .cta p { color: var(--on-brand); position: relative; z-index: 1; }
.cta p { opacity: .9; max-width: 46ch; margin: 0 auto 24px; font-size: 1.1rem; }
.cta .btn { position: relative; z-index: 1; background: rgba(255, 255, 255, .92); color: #03140f; box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(0, 0, 0, .15); }

.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius-sm); padding: 16px 18px; font-size: .95rem; }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--warn); margin-top: 2px; }
.notice p { margin: 0; }

/* ---------- Inner pages ---------- */
.page-head { padding: 64px 0 28px; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

.prose-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 92px; font-size: .92rem; border-radius: 18px; padding: 18px 16px; }
.toc strong { display: block; margin-bottom: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--muted); }
.toc a:hover { color: var(--text); background: color-mix(in srgb, var(--brand-2) 10%, transparent); text-decoration: none; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; scroll-margin-top: 92px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.summary-box { border-radius: var(--radius); padding: 24px 28px; margin-bottom: 40px; }
@media (max-width: 860px) { .prose-wrap { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; padding-bottom: 96px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--field-bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 20%, transparent); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--brand); }
.form-status.err { color: #e5484d; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list .icon { margin: 0; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.contact-list strong { display: block; }
.contact-list span { color: var(--muted); font-size: .95rem; }
.info-card { border-radius: var(--radius); padding: 24px 28px; }
.info-card p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--glass-border); padding: 48px 0 40px; font-size: .92rem; color: var(--muted); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--text); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-grid .logo img { height: 44px; }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
/* Blur-in reveal, staggered with --d. JS removes the class once it has played so hover effects still work. */
.js .reveal {
  opacity: 0; transform: translateY(48px) scale(.97); filter: blur(12px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found .big { font-size: clamp(5rem, 18vw, 9rem); font-weight: 800; line-height: 1; margin-bottom: 8px; font-family: var(--font-display); }

/* About page */
.about-wrap { grid-template-columns: 1fr 320px; }
.about-aside { position: sticky; top: 92px; }
@media (max-width: 860px) { .about-wrap { grid-template-columns: 1fr; } .about-aside { position: static; } }

/* Floating cards sit over the light phone screen, so they need denser glass to stay readable */
.float-card, .glass { background: color-mix(in srgb, var(--glass-strong) 82%, transparent); }

/* Wordmark text that matches the CYLIX logo */
.wordmark {
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  color: #161826;
}
@media (prefers-color-scheme: dark) { .wordmark { color: #e9e9ed; } }
/* Syncopate is very wide, so scale it down inside big headings */
h1 .wordmark, h2 .wordmark { font-size: .78em; letter-spacing: .1em; margin-left: .12em; }
h1 .wordmark:first-child, h2 .wordmark:first-child { margin-left: 0; }
.eyebrow.wordmark { font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* Gradient highlight for "Your" on the Kilometa page */
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .14em; border-radius: 99px; background: var(--grad); opacity: .35; }

/* ================= Liquid glass, everywhere =================
   Each surface gets a frosted, see-through fill, a bright rim that catches
   light on the top left edge, an inner glow and a soft shadow. */
:root {
  --rim: linear-gradient(135deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .25) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .45) 100%);
  --lg-inner: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -1px 1px rgba(255, 255, 255, .25), inset 0 0 24px rgba(255, 255, 255, .25);
  --lg-blur: blur(20px) saturate(190%) brightness(1.04);
  --lg-accent: linear-gradient(135deg, rgba(0, 160, 128, .9) 0%, rgba(0, 112, 92, .86) 100%);
  --lg-field: rgba(255, 255, 255, .55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --rim: linear-gradient(135deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .10) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .18) 100%);
    --lg-inner: inset 0 1px 1px rgba(255, 255, 255, .22), inset 0 -1px 1px rgba(255, 255, 255, .05), inset 0 0 24px rgba(255, 255, 255, .03);
    --lg-accent: linear-gradient(135deg, rgba(47, 217, 174, .55) 0%, rgba(0, 140, 112, .45) 100%);
    --lg-field: rgba(255, 255, 255, .05);
  }
}

.card, .app-card, .form, .glass, .float-card, .summary-box, .info-card, .badge, .faq details, .toc, .notice,
.btn-ghost, .btn-primary, .btn-accent, .nav-links > li > a.nav-cta, .menu-toggle, .store-badge, .cta, .icon, .pill,
.app-card .arrow, .site-footer, .menu {
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
}
.card, .app-card, .form, .glass, .float-card, .summary-box, .info-card, .badge, .faq details, .toc, .notice,
.btn-ghost, .menu-toggle, .menu {
  border-color: transparent;
  box-shadow: var(--lg-inner), var(--glass-shadow);
}

/* Specular rim, drawn as a 1px gradient border */
/* floating cards and sticky panels keep their own positioning */
.card, .app-card, .form, .summary-box, .info-card, .badge, .faq details, .notice,
.btn-ghost, .btn-primary, .btn-accent, .nav-links > li > a.nav-cta, .menu-toggle, .store-badge, .cta, .icon, .pill { position: relative; }
.about-aside { position: sticky; }
@media (max-width: 860px) { .about-aside { position: static; } }
.card::before, .app-card::before, .form::before, .glass::before, .float-card::before, .summary-box::before,
.info-card::before, .badge::before, .faq details::before, .toc::before, .notice::before, .btn-ghost::before,
.btn-primary::before, .btn-accent::before, .nav-links > li > a.nav-cta::before, .menu-toggle::before,
.store-badge::before, .cta::before, .icon::before, .pill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.app-card.soon::before { opacity: .5; }

/* Buttons become tinted glass */
.btn-primary, .btn-accent, .nav-links > li > a.nav-cta {
  background: var(--lg-accent); color: #ffffff !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -1px 1px rgba(0, 0, 0, .08), 0 10px 28px color-mix(in srgb, var(--brand-2) 28%, transparent);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
.btn-ghost { background: var(--glass-bg); }
.store-badge {
  background: color-mix(in srgb, var(--text) 86%, transparent); color: var(--bg);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25), var(--glass-shadow);
}

/* The call to action box is green glass instead of a solid fill */
.cta {
  background: var(--lg-accent);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5), inset 0 0 60px rgba(255, 255, 255, .08), 0 24px 60px color-mix(in srgb, var(--brand-2) 22%, transparent);
}
.cta h2, .cta p { color: #ffffff; }
.cta .btn {
  background: rgba(255, 255, 255, .22); color: #ffffff; border: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 8px 20px rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
}
.cta .btn:hover { background: rgba(255, 255, 255, .32); }

/* Small glass tiles and chips */
.icon { background: color-mix(in srgb, var(--brand-2) 14%, transparent); box-shadow: var(--lg-inner); }
.pill { box-shadow: var(--lg-inner); }
.app-card .arrow { background: var(--glass-bg); box-shadow: var(--lg-inner); }
.menu-toggle { background: var(--glass-bg); }

/* Form fields are frosted too */
input, select, textarea {
  background: var(--lg-field); border-color: color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06), inset 0 -1px 0 rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Footer sits on a glass panel */
.site-footer { background: color-mix(in srgb, var(--bg) 35%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
@media (prefers-color-scheme: dark) { .site-footer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); } }

/* Header gets the same inner glow */
.site-header { border-bottom-color: transparent; box-shadow: var(--lg-inner), 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 10px 30px rgba(0, 0, 0, .08); }

/* ================= Scroll animations ================= */
[data-hero-fade], [data-hero-phone], [data-orbit-phone] { will-change: transform, opacity; }

/* Words that light up as you scroll */
.scrub { padding: 16vh 0; }
.scrub-text {
  max-width: 920px; margin: 0 auto; text-align: center;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.18;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
}
.scrub-text em { font-style: normal; }
.scrub-text .w { opacity: .14; transition: opacity .35s ease; }
.scrub-text .w.on { opacity: 1; }
.scrub-text em .w.on { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Pinned phone story */
.story-track { position: relative; height: 520vh; }
.story-sticky {
  position: sticky; top: 68px; height: calc(100vh - 68px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.story-copy { position: relative; min-height: 260px; }
.story-line {
  position: absolute; left: 0; right: 0; top: 50%;
  opacity: 0; transform: translateY(calc(-50% + 30px)); filter: blur(8px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), filter .6s var(--ease-out);
}
.story-line.active { opacity: 1; transform: translateY(-50%); filter: none; }
.story-line h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.story-line p { font-size: 1.2rem; max-width: 34ch; }
.story-bar { position: absolute; left: 0; bottom: -40px; width: 160px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.story-bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.story-phone { display: grid; place-items: center; }
.story-shot {
  grid-area: 1 / 1; width: auto; height: calc(100vh - 150px); max-height: 760px; max-width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .3));
  opacity: 0; transform: translateY(30px) scale(.95);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.story-shot.active { opacity: 1; transform: none; }
@media (max-width: 880px) {
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 16px; padding-top: 16px; padding-bottom: 24px; text-align: center; }
  .story-phone { order: -1; min-height: 0; }
  .story-shot { height: 52vh; }
  .story-copy { min-height: 200px; }
  .story-line p { margin-left: auto; margin-right: auto; }
  .story-bar { left: 50%; margin-left: -80px; bottom: -8px; }
}

/* Reduced motion: no pinning, show everything */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { filter: none; }
  .story-track { height: auto; }
  .story-sticky { position: static; height: auto; padding: 64px 20px; }
  .story-copy { min-height: 0; }
  .story-line { position: static; opacity: 1; transform: none; filter: none; margin-bottom: 32px; }
  .story-bar { display: none; }
  .story-phone { grid-auto-flow: column; gap: 16px; }
  .story-shot { grid-area: auto; height: auto; width: 100%; max-height: none; opacity: 1; transform: none; }
  .scrub-text .w { opacity: 1; }
}

/* iPhone frame drawn in CSS, used around the screen recording */
.phone-wrap { container-type: inline-size; }
.device {
  position: relative; width: 100%;
  padding: 3.4cqw; border-radius: 15.5cqw;
  background: #0b0b0e;
  box-shadow:
    0 0 0 .55cqw #4a4b52,
    0 0 0 .9cqw #1a1b20,
    inset 0 0 .6cqw rgba(255, 255, 255, .18),
    0 30px 60px rgba(0, 0, 0, .35);
}
.device::before, .device::after {
  content: ""; position: absolute; width: .9cqw; border-radius: 1cqw; background: #2b2c31;
}
.device::before { left: -1.5cqw; top: 22%; height: 9%; box-shadow: 0 13cqw 0 #2b2c31; }
.device::after { right: -1.5cqw; top: 28%; height: 15%; }
.device-screen { display: block; width: 100%; height: auto; border-radius: 12.3cqw; background: #eef1ee; }
