/* DockPlus — identidad: Branding/IDENTITY.md */
:root {
  --indigo: #5B4BEA;
  --indigo-300: #8A7CFF;
  --indigo-900: #2A1E8F;
  --ink: #0E0B2E;
  --paper: #FAFAFF;
  --coral: #FF3D6E;
  --coral-2: #FF8F6B;
  --amber: #FF9F0A;
  --amber-2: #FFE38A;
  --mint: #0FA36F;
  --mint-2: #7BEFC2;
  --sky: #0A84FF;
  --sky-2: #93DCFF;
  --text: #ECEBFF;
  --muted: rgba(236, 235, 255, 0.62);
  --line: rgba(255, 255, 255, 0.10);
  --card: rgba(255, 255, 255, 0.05);
  --glass: rgba(255, 255, 255, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, sans-serif;
  --font-rounded: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--font-rounded); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.08; font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0; }
.grad { background: linear-gradient(135deg, var(--indigo-300), #C7B9FF 45%, var(--coral-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 48px)); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); background: rgba(14, 11, 46, 0.55); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 9px; }
.wordmark { font-family: var(--font-rounded); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.wordmark b { font-weight: 800; color: var(--indigo-300); }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.lang:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 600; padding: 12px 22px; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-big { padding: 15px 28px; font-size: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--indigo-300), var(--indigo)); color: #fff; box-shadow: 0 10px 30px rgba(91, 75, 234, 0.35); }
.btn-primary:hover { box-shadow: 0 14px 36px rgba(91, 75, 234, 0.5); }
.btn-primary small { font-weight: 500; opacity: .75; font-size: 13px; }
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.price-inline { font-weight: 800; }

/* Hero */
.hero { position: relative; height: 300vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.aurora {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 45% at 22% 12%, rgba(255, 143, 107, 0.55), transparent 65%),
    radial-gradient(48% 45% at 78% 30%, rgba(147, 220, 255, 0.45), transparent 65%),
    radial-gradient(50% 30% at 55% 2%, rgba(255, 227, 138, 0.28), transparent 65%),
    linear-gradient(135deg, #8A7CFF 0%, #5B4BEA 50%, #2A1E8F 100%);
}
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,46,0) 55%, rgba(14,11,46,0.55) 100%); }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: clamp(56px, 9vh, 120px) 24px 0; max-width: 900px; margin: 0 auto; will-change: transform, opacity; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,0.82); max-width: 640px; margin: 20px auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hint { margin-top: 22px; font-size: 13px; color: rgba(255,255,255,0.55); transition: opacity .3s; }

.stage { position: relative; z-index: 1; flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px; }
.dock { position: relative; transform-origin: bottom center; }
.shelf { position: absolute; inset: 0; border-radius: 28px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.45); box-shadow: 0 20px 60px rgba(14, 11, 46, 0.35), inset 0 1px 0 rgba(255,255,255,0.5); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); opacity: 0; transform: scaleX(0.6); transform-origin: center; }
.items { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; }
.items > * { will-change: transform, opacity; cursor: default; }
/* Scattered pieces sit above the copy so they can be hovered; while a piece is hovered it comes fully forward. */
.stage { z-index: 3; pointer-events: none; }
.items > * { pointer-events: auto; }
.items > .is-hover { z-index: 5; box-shadow: 0 24px 60px rgba(14, 11, 46, 0.45); }
/* The buttons stay clickable even when a drifting piece passes over them. */
.hero-copy .cta { position: relative; z-index: 4; }

/* Widget faces */
.w { position: relative; height: 74px; border-radius: 20px; background: rgba(255,255,255,0.86); color: var(--ink); display: flex; align-items: center; gap: 10px; padding: 0 14px; box-shadow: 0 8px 22px rgba(14,11,46,0.18); flex: none; font-variant-numeric: tabular-nums; }
.w-sub { font-size: 12px; color: rgba(14,11,46,0.55); line-height: 1.2; white-space: nowrap; }
.w-big { font-family: var(--font-rounded); font-size: 22px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
.w-time { font-family: var(--font-rounded); font-size: 26px; font-weight: 700; line-height: 1; }
.w-clock { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; width: 128px; }
.w-clock::before { content: ""; position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--sky) 0 25%, rgba(10,132,255,0.15) 0); mask: radial-gradient(circle, transparent 38%, #000 40%); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%); }
.ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(14,11,46,0.1); stroke-width: 5; }
.ring-fg { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 113; }
.ring-focus { stroke: #CB30E0; stroke-dashoffset: 40; }
.ring-focus.anim { animation: ring 6s linear infinite; }
.ring-batt { stroke: var(--mint); stroke-dashoffset: 18; }
@keyframes ring { from { stroke-dashoffset: 113; } to { stroke-dashoffset: 0; } }
.w-focus, .w-battery, .w-hydra { width: 150px; }
.w-shortcut, .w-reminders { width: 180px; }
.w-shortcut .w-big, .w-reminders .w-big { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 116px; }
.w-calendar { width: 236px; gap: 12px; }
.cal-date { display: flex; flex-direction: column; align-items: center; line-height: 1; flex: none; }
.cal-dow { font-size: 10px; font-weight: 700; color: var(--coral); letter-spacing: .06em; }
.cal-day { font-family: var(--font-rounded); font-size: 30px; font-weight: 800; }
.cal-list { display: flex; flex-direction: column; gap: 3px; font-size: 11px; min-width: 0; }
.cal-list > div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cal-list i { width: 3px; height: 11px; border-radius: 2px; background: var(--c); flex: none; }
.cal-list span { overflow: hidden; text-overflow: ellipsis; }
.cal-list em { font-style: normal; color: rgba(14,11,46,0.5); margin-left: auto; padding-left: 6px; }
.w-weather { width: 208px; gap: 12px; }
.wx-now { flex: none; }
.wx-hours { display: flex; gap: 8px; font-size: 10px; color: rgba(14,11,46,0.6); }
.wx-hours > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wx-hours b { font-size: 12px; }
.wx-hours span:last-child { color: var(--ink); font-weight: 600; }
.w-np { width: 272px; gap: 10px; }
.np-art { width: 50px; height: 50px; border-radius: 12px; flex: none; background: linear-gradient(160deg, #FF8A65, #FF2D55); position: relative; }
.np-art::after { content: "♪"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 700; }
.np-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.np-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ctl { display: flex; gap: 10px; font-size: 13px; font-weight: 700; flex: none; }
.np-play { font-size: 16px; }
.np-seek { display: flex; align-items: center; gap: 6px; font-size: 10px; color: rgba(14,11,46,0.55); }
.np-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(14,11,46,0.12); position: relative; }
.np-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 39%; border-radius: 2px; background: var(--ink); }
.np-bar i::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.np-bar i.anim { animation: seek 40s linear infinite; }
@keyframes seek { from { width: 39%; } to { width: 100%; } }
.w-system { width: 190px; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.sys { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.sys span { width: 52px; color: rgba(14,11,46,0.6); }
.sys b { width: 32px; text-align: right; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(14,11,46,0.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); border-radius: 3px; background: linear-gradient(90deg, var(--mint-2), var(--mint)); animation: grow 1.4s ease-out; }
@keyframes grow { from { width: 0; } }
.w-note { width: 168px; background: linear-gradient(180deg, #FFF3A6, #FFE066); font-size: 12px; line-height: 1.3; font-family: var(--font-rounded); font-weight: 600; }
.drop, .sc-icon, .rem-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 20px; }
.drop { background: rgba(10,132,255,0.12); }
.sc-icon { background: linear-gradient(135deg, var(--indigo-300), var(--indigo)); color: #fff; font-weight: 700; }
.rem-badge { background: var(--coral); color: #fff; font-family: var(--font-rounded); font-weight: 800; font-size: 20px; border-radius: 50%; }
.w-stripe { width: 190px; justify-content: space-between; }
.spark { width: 70px; height: 30px; }

/* App tiles */
.app { width: 64px; height: 64px; border-radius: 16px; flex: none; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(14,11,46,0.22); position: relative; }
.app svg { width: 46px; height: 46px; }
.app::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255,255,255,0.8); }
.app-finder { background: linear-gradient(180deg, #5AC8FA, #0A84FF); }
.app-mail { background: linear-gradient(180deg, #6EB4FF, #2E7CF6); }
.app-notes { background: linear-gradient(180deg, #FFE082, #FFC53D); }
.app-music { background: linear-gradient(180deg, #FF7A8A, #FF2D55); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 680px; margin: 16px 0 44px; }
.cards.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; color: var(--tint); background: color-mix(in srgb, var(--tint) 18%, transparent); }
.card-icon svg { width: 26px; height: 26px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--mint-2); font-weight: 800; margin-right: 10px; }
.ticks.center { align-items: center; margin-top: 26px; color: var(--muted); }

.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 18px; align-items: start; }
.wcell { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.wcell > span { font-size: 14px; color: var(--muted); }
.wcell .w { max-width: 100%; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.feat p { color: var(--muted); font-size: 15px; }

.pricing { display: flex; justify-content: center; }
.price-card { text-align: center; max-width: 640px; padding: 48px 32px; border-radius: 30px; background: linear-gradient(180deg, rgba(138,124,255,0.16), rgba(255,255,255,0.03)); border: 1px solid rgba(138,124,255,0.35); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.price-card img { border-radius: 22px; margin-bottom: 8px; }
.price-card .section-lead { margin: 6px auto 22px; }
.price { font-family: var(--font-rounded); }
.price-value { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; }
.price-note { color: var(--muted); font-size: 14px; }

.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-rounded); font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 18px; }

.footer { border-top: 1px solid var(--line); padding: 40px 0 60px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.footer .brand img { border-radius: 7px; }
.fine { width: 100%; color: rgba(236,235,255,0.4); font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.wgrid .reveal { transition-delay: calc(var(--i, 0) * 60ms); }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .hero { height: 260vh; }
  .hero-copy { padding-top: 40px; }
  .btn-big { padding: 13px 20px; font-size: 15px; }
  .card { padding: 22px; }
}
@media (max-width: 640px) {
  /* Fewer pieces on phones so the dock stays legible at the smaller scale. */
  .items .w-np, .items .w-weather, .items .app-notes, .items .app-music { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ring-focus.anim, .np-bar i.anim, .bar i { animation: none; }
}
