@font-face { font-family: "Onest"; src: url("fonts/onest-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("fonts/onest-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #121417;      /* logo tile */
  --text: #2B3038;
  --muted: #5D6470;
  --rule: #D9DCE1;     /* page fold in the logo */
  --mist: #F2F3F5;
  --paper: #FFFFFF;
  --amber: #FFB800;    /* the bolt */
  --amber-deep: #E5A500;
  --select: #CCE4F7;   /* Explorer selection blue */
  --select-line: #99C9EF;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Onest", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); }

h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.12; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }

.nw { white-space: nowrap; }

/* Buttons: amber like the bolt, ink text like its outline */
.btn {
  display: inline-block; text-decoration: none;
  background: var(--amber); color: var(--ink);
  font-weight: 700; font-size: 17px;
  padding: 14px 26px; border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--ink);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--amber-deep); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 8px 16px; font-size: 15px; border-radius: 9px; }
.btn-big { font-size: 19px; padding: 17px 34px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mist); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand.small { font-size: 15px; gap: 8px; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
h1 { font-size: clamp(52px, 6.8vw, 100px); font-weight: 800; line-height: .94; letter-spacing: -0.045em; }
.lede { margin-top: 26px; font-size: 20px; line-height: 1.5; max-width: 30em; color: var(--text); }
.cta { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-meta { font-size: 15px; color: var(--muted); }

/* The right-click demo */
.demo { margin: 0; }
.desk {
  position: relative; height: 560px;
  background: var(--mist); border-radius: 18px;
  padding: 28px; overflow: hidden;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Onest", system-ui, sans-serif;
}
.files { background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(18,20,23,.06); padding: 6px; max-width: 420px; font-size: 13px; color: #1b1b1b; }
.frow { display: grid; grid-template-columns: 18px 1fr 52px; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; }
.frow span { overflow: hidden; text-overflow: ellipsis; }
.frow .t { color: #6b6b6b; }
.frow.head { grid-template-columns: 1fr 52px; height: 30px; color: #6b6b6b; font-size: 12px; padding-left: 38px; }
.frow.sel { background: var(--select); border-color: var(--select-line); }
.ficon { width: 14px; height: 17px; border-radius: 2px 5px 2px 2px; display: block; }
.ficon.pdf { background: #D9363E; }
.ficon.img { background: #3A7BD5; }
.ficon.xls { background: #1F7A45; }

.menu {
  position: absolute; background: #fff; border-radius: 8px;
  border: 1px solid #E3E3E3;
  box-shadow: 0 8px 24px rgba(18,20,23,.14), 0 1px 3px rgba(18,20,23,.08);
  padding: 4px; font-size: 13.5px; color: #1b1b1b; width: 210px;
}
.m1 { left: 168px; top: 150px; width: 196px; }
.m2 { left: 360px; top: 261px; width: 188px; }
.mi { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-radius: 4px; }
.mi .chev { margin-left: auto; font-size: 16px; color: #555; }
.sep { height: 1px; background: #E8E8E8; margin: 4px 6px; }
.mi.fb, .mi.go { background: #F0F0F0; }
.mi.go { font-weight: 600; }

.toast {
  position: absolute; right: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 14px 18px 14px 14px;
  box-shadow: 0 10px 30px rgba(18,20,23,.16);
  font-size: 13.5px;
}
.toast strong { display: block; color: var(--ink); font-size: 14.5px; }
.toast span { color: var(--muted); }

/* One orchestrated sequence: menu, FilesBolt, Merge, done */
.demo.play .m1, .demo.play .m2, .demo.play .toast { opacity: 0; }
.demo.play .mi.fb, .demo.play .mi.go { background: transparent; }
.demo.play .m1 { animation: pop .18s ease-out .5s forwards; }
.demo.play .mi.fb { animation: hl .01s linear 1.2s forwards; }
.demo.play .m2 { animation: pop .18s ease-out 1.45s forwards; }
.demo.play .mi.go { animation: hl .01s linear 2.1s forwards; }
.demo.play .toast { animation: rise .35s cubic-bezier(.2,.8,.2,1) 2.8s forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hl { to { background: #F0F0F0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tools */
.tools { padding: 96px 0; border-top: 1px solid var(--mist); }
.sub { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 36em; }
.groups { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 56px; }
.group h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.group dl { margin: 0; }
.group dt { margin-top: 16px; font-weight: 600; color: var(--ink); }
.group dd { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }

/* App screenshot */
.app { padding: 96px 0; background: var(--mist); }
.app-in { display: grid; grid-template-columns: .7fr 1.6fr; gap: 56px; align-items: center; }
.app-copy p { margin-top: 18px; font-size: 18px; max-width: 24em; }
.mode { margin-top: 28px; display: inline-flex; background: #fff; border-radius: 10px; padding: 4px; box-shadow: inset 0 0 0 1px var(--rule); }
.mode button { font: inherit; font-size: 15px; font-weight: 600; border: 0; background: none; padding: 7px 16px; border-radius: 7px; color: var(--muted); cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.shot { margin: 0; }
.shot img { border-radius: 12px; box-shadow: 0 1px 0 var(--rule), 0 24px 60px rgba(18,20,23,.16); }

/* Privacy */
.privacy { padding: 96px 0; }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.facts p { font-size: 17px; color: var(--muted); max-width: 22em; }
.facts strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }

/* Download */
.download { padding: 96px 0; background: var(--ink); color: #C9CDD3; }
.download h2 { color: #fff; }
.dl-in { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
.dl-logo { border-radius: 22px; box-shadow: 0 0 0 1px #2A2E35; }
.dl-meta { margin: 20px 0 30px; display: flex; flex-wrap: wrap; gap: 12px 40px; }
.dl-meta dt { font-size: 14px; color: #8A919C; }
.dl-meta dd { margin: 0; color: #fff; font-weight: 600; }
.download .btn { box-shadow: none; }
.dl-note { margin-top: 24px; max-width: 34em; }
.dl-later { margin-top: 12px; color: #8A919C; font-size: 15px; }

/* Help */
.faq { padding: 96px 0; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; color: var(--ink); font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Footer */
.foot { border-top: 1px solid var(--mist); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.copy { margin-left: auto; }

/* Privacy page */
.doc { padding: 64px 0 96px; }
.doc h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.doc .updated { margin-top: 12px; color: var(--muted); }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc p, .doc li { margin-top: 12px; max-width: 40em; }
.doc ul { padding-left: 20px; }

/* Smaller screens */
@media (max-width: 960px) {
  .hero-in, .app-in { grid-template-columns: 1fr; gap: 44px; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav a:not(.btn) { display: none; }
  .hero { padding: 44px 0 56px; }
  .lede { font-size: 18px; }
  .desk { height: 520px; padding: 18px; }
  .m1 { left: 40px; top: 150px; }
  .m2 { left: 120px; top: 262px; }
  .toast { left: 14px; right: 14px; bottom: 14px; }
  .groups { grid-template-columns: 1fr; }
  .tools, .app, .privacy, .download, .faq { padding: 64px 0; }
  .dl-in { grid-template-columns: 1fr; }
  .copy { margin-left: 0; }
}
