/*
 * Shared by the home and products pages.
 * Layout: full-bleed bands, each a stage of soft colour fields with frosted glass panes floating over it.
 */
:root {
  --stage: #08090c;
  --band: #0e0f13;
  --raised: #16171b;
  --window: #1e1e1f;
  --ink: #f5f5f7;
  --ink-muted: #a1a1a6;
  --ink-faint: #6e6e73;
  --line: rgba(255, 255, 255, 0.1);
  --rim: rgba(255, 255, 255, 0.22);
  --accent: #2997ff;
  --on-accent: #ffffff;
  --robot: #34d392;
  --glass: rgba(28, 28, 32, 0.46);
  --glass-strong: rgba(28, 28, 32, 0.68);
  --control: rgba(255, 255, 255, 0.1);
  --track: rgba(255, 255, 255, 0.08);
  --blob-blue: #2f7cf6;
  --blob-green: #1fb877;
  --blob-violet: #8b7cf6;
  --blob-orange: #f0743a;
  --blob-pink: #e0559b;
  --field-blue: rgba(57, 135, 229, 0.4);
  --field-green: rgba(31, 184, 119, 0.3);
  --field-violet: rgba(144, 133, 233, 0.26);
  --field-orange: rgba(217, 89, 38, 0.2);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181;
  --shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --display: "Geist", "SF Pro Display", -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --stage: #f5f5f7; --band: #ffffff; --raised: #ffffff; --window: #ffffff;
    --ink: #1d1d1f; --ink-muted: #6e6e73; --ink-faint: #a1a1a6;
    --line: rgba(0, 0, 0, 0.09); --rim: rgba(255, 255, 255, 0.95);
    --accent: #0071e3; --robot: #12915b;
    --glass: rgba(255, 255, 255, 0.5); --glass-strong: rgba(255, 255, 255, 0.72);
    --control: rgba(0, 0, 0, 0.06); --track: rgba(0, 0, 0, 0.07);
    --blob-blue: #6aa8ff; --blob-green: #4fd8a0; --blob-violet: #b3a7ff; --blob-orange: #ffad7a; --blob-pink: #ff9ccc;
    --field-blue: rgba(42, 120, 214, 0.22); --field-green: rgba(27, 175, 122, 0.18); --field-violet: rgba(98, 80, 214, 0.14); --field-orange: rgba(235, 104, 52, 0.12);
    --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4;
    --shadow: 0 50px 100px -40px rgba(30, 40, 70, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--stage); color: var(--ink); font-family: var(--text);
  font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 48px; }

.wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-muted); }
.eyebrow.new { color: var(--blob-orange); }

/* Navigation: a thin glass strip, as on apple.com */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--stage) 70%, transparent);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 48px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 12.5px; }
.nav-links a { color: var(--ink-muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) { .nav-links { gap: 18px; } }

/* Links and buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 500; font-size: 17px;
}
.button:hover { text-decoration: none; filter: brightness(1.1); }
.button.glassy {
  background: var(--glass); color: var(--ink);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--rim), 0 0 0 1px var(--line);
}
.more-link { font-size: 19px; }
.more-link::after { content: " ›"; }
.links-row { display: flex; gap: 28px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* Glass */
.glass {
  background: var(--glass);
  backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
  position: relative;
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), transparent 38%);
}

/* Colour you can see through the glass */
/* Behind every section's content, and free to spill past its edges so the page reads as one surface. */
main { position: relative; isolation: isolate; overflow-x: clip; }
.blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.85; }
@media (prefers-color-scheme: light) { .blobs i { opacity: 0.7; } }

/* Sections share one stage: no fills, no dividers */
.band { position: relative; }

/* A product showcase, centred like an apple.com tile */
.showcase { padding-block: 120px 40px; text-align: center; }
.showcase h2 { font-size: clamp(48px, 8vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; margin-top: 8px; }
.showcase .tagline { font-family: var(--display); font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink-muted); margin-top: 10px; }
.showcase .links-row { margin-top: 22px; }
.showcase .stage { position: relative; margin-top: 56px; display: flex; justify-content: center; padding-bottom: 0; }
.showcase .stage::before {
  content: ""; position: absolute; inset: 10% -10% -10%; z-index: -1;
  background:
    radial-gradient(40% 55% at 22% 40%, var(--field-blue), transparent 70%),
    radial-gradient(35% 50% at 80% 30%, var(--field-violet), transparent 70%),
    radial-gradient(40% 50% at 50% 100%, var(--field-green), transparent 70%);
  filter: blur(10px);
}

/* A macOS window, drawn in DroidDisk's own tokens */
.win {
  position: relative; width: 100%; max-width: 1000px; border-radius: 18px; overflow: hidden;
  background: var(--window); box-shadow: var(--shadow); text-align: left; font-size: 13px; line-height: 1.45;
  container-type: inline-size;
}
.win .lights { position: absolute; top: 14px; left: 16px; display: flex; gap: 8px; z-index: 5; }
.win .lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.win .lights i:nth-child(1) { background: #ff5f57; } .win .lights i:nth-child(2) { background: #febc2e; } .win .lights i:nth-child(3) { background: #28c840; }
.app-backdrop {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 4% 6%, var(--field-blue), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, var(--field-green), transparent 70%),
    radial-gradient(50% 60% at 80% -5%, var(--field-violet), transparent 70%),
    radial-gradient(45% 55% at 102% 96%, var(--field-orange), transparent 70%),
    var(--window);
}
.pane {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.app { position: relative; z-index: 1; display: grid; grid-template-columns: 210px 1fr; min-height: 470px; }
.sidebar { margin: 5px; border-radius: 14px; padding: 42px 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.sb-head { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.sb-row { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; color: var(--ink); }
.sb-row i { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); opacity: 0.9; flex: none; }
.sb-row.on { background: var(--control); font-weight: 600; }
.sb-row .badge { margin-left: auto; font-size: 11px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.main { display: flex; flex-direction: column; min-width: 0; }
.bar { height: 46px; display: flex; align-items: center; padding: 0 16px; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.overview { padding: 20px clamp(14px, 4cqi, 36px); display: flex; flex-direction: column; gap: 12px; }
.card { border-radius: 18px; padding: 18px 20px; }
.device { display: flex; gap: 20px; align-items: center; }
.phone { width: 50px; height: 104px; border-radius: 11px; padding: 2px; background: linear-gradient(140deg, #6a6a6a, #2e2e2e); flex: none; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.phone div { width: 100%; height: 100%; border-radius: 9px; background: linear-gradient(#232323, #0a0a0a); }
.device h4 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.facts { display: grid; grid-template-columns: 76px auto; gap: 2px 10px; font-size: 12px; margin: 0; }
.facts dt { color: var(--ink-muted); } .facts dd { margin: 0; }
.storage-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.chip { font-size: 12px; font-weight: 500; background: var(--control); padding: 4px 11px; border-radius: 7px; }
.storage-top b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.storage-top span { color: var(--ink-muted); }
.segbar { display: flex; gap: 2px; height: 10px; margin: 10px 0 8px; }
.segbar i { display: block; border-radius: 3px; }
.usage { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.usage div { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.usage i { width: 9px; height: 9px; border-radius: 2.5px; flex: none; }
.usage em { margin-left: auto; font-style: normal; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
@container (max-width: 620px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .bar { padding-left: 80px; }
  .usage { grid-template-columns: 1fr; }
}

/* Small grid of glass cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards article { border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cards h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.cards p { color: var(--ink-muted); font-size: 16px; }
.cards .glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; color: #fff; }
.cards .glyph svg { width: 24px; height: 24px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding-block: 22px 40px; font-size: 12px; color: var(--ink-faint); background: var(--stage); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--ink-muted); }
