/* Styles for every page of the site. */
:root {
  --bg: #f4f4f5;
  --ink: #121316;
  --muted: #5d6270;
  --line: rgba(18, 19, 22, 0.08);
  --dark: #15161d;
  --blue: #4b84f0;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;
}
html[lang="ar"] { --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* phones keep the sizes we set */
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
html[lang="en"] [lang="ar"], html[lang="ar"] [lang="en"] { display: none !important; }

/* ---------- Header ---------- */
.top { position: absolute; inset: 14px 0 auto; z-index: 20; }
.top .wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--dark); }
.brand .mark svg { width: 18px; height: 18px; }
.nav { display: flex; align-items: center; gap: 4px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px var(--line); }
.nav a, .nav button { white-space: nowrap; }
.nav a { padding: 8px 14px; font-size: 14.5px; border-radius: 9px; color: #2a2c33; }
.nav a:hover { background: #f2f2f4; }
.nav .ghost { border: 1px solid #d7d8dd; padding: 7px 13px; margin-inline-start: 6px; font: inherit; font-size: 14.5px; background: #fff; border-radius: 9px; cursor: pointer; color: #2a2c33; }
.nav .solid { background: var(--dark); color: #fff; padding: 8px 15px; }
.nav .solid:hover { background: #2a2c36; }
@media (max-width: 820px) { .nav .hide-sm { display: none; } }
@media (max-width: 480px) {
  .top .wrap { padding: 0 14px; }
  .brand { font-size: 17px; gap: 7px; } .brand .mark { width: 26px; height: 26px; }
  .nav { padding: 4px; } .nav a, .nav .ghost { font-size: 13px; padding: 6px 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 104px 20px 0; text-align: center; overflow: hidden; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 7px; border-radius: 980px; background: #fff; font-size: 13.5px; color: #2a2c33;
  box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 2; }
.badge .dots { display: flex; }
.badge .dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; margin-inline-end: -7px; }
.badge .dots i:nth-child(1) { background: #4285f4; } .badge .dots i:nth-child(2) { background: #34a853; } .badge .dots i:nth-child(3) { background: #fbbc05; }
h1 { position: relative; z-index: 2; margin: 18px 0 14px; font-weight: 600; font-size: clamp(40px, 6.4vw, 78px); line-height: 0.98; letter-spacing: -0.045em; }
h1 .px { font-family: var(--pixel); font-weight: 400; letter-spacing: -0.02em; font-size: .93em; }
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.2; font-size: clamp(34px, 5.2vw, 62px); }
.lead { position: relative; z-index: 2; max-width: 540px; margin: 0 auto 20px; font-size: 16px; line-height: 1.5; color: #31343c; }
.cta { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 12px; font-size: 15px; font-weight: 500;
  color: #fff; background: var(--dark); box-shadow: 0 6px 16px rgba(21, 22, 29, .18); transition: transform .15s, background .2s; }
.cta:hover { background: #2a2c36; transform: translateY(-1px); }
.compat { position: relative; z-index: 2; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: #3a3d46; }
.compat .os { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 980px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 500; }
.compat .os svg { width: 15px; height: 15px; }
.compat .sep { color: #9aa0ad; }

/* ---------- Still, wavy layers of the Drive colours (yellow, red, green, blue), softly blurred ---------- */
.wave { position: absolute; left: -6%; right: -6%; bottom: 0; height: 72%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%); }
.wave svg { width: 100%; height: 100%; display: block; filter: blur(34px); opacity: .92; }
.wave i { display: none; }
/* The hero ends in exactly the cards' blue, so there's no seam */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(42, 79, 196, 0), var(--blue) 85%); }
/* ---------- Premiere: monitor + DriveDrop on top, the timeline across the bottom ---------- */
.pr { position: relative; z-index: 3; width: min(1160px, 100%); margin: 34px auto 0; background: #121212; border-radius: 12px; overflow: hidden;
  box-shadow: 0 -16px 60px rgba(20, 40, 120, .22), 0 0 0 1px rgba(0,0,0,.4); direction: ltr; text-align: left;
  font-family: -apple-system, "Segoe UI", sans-serif; color: #c8c8c8; user-select: none; }
.pr-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #262626; border-bottom: 1px solid #0d0d0d; }
.pr-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.pr-bar i:nth-child(2) { background: #febc2e; } .pr-bar i:nth-child(3) { background: #28c840; }
.pr-bar span { margin: 0 auto; transform: translateX(-24px); color: #9a9a9a; font-size: 12px; }
/* Before DriveDrop is installed the monitor takes the whole top row; the panel docks in when the tutorial opens it */
.pr-body { display: grid; grid-template-columns: minmax(0, 1fr) 0fr; grid-template-rows: 380px 260px; gap: 3px; padding: 3px; }
.pr.docked .pr-body { grid-template-columns: minmax(0, 1.6fr) 1fr; }
.pr:not(.docked) .pr-panel { opacity: 0; pointer-events: none; }
.pp { background: #1e1e1e; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pp-tabs { flex: none; height: 26px; display: flex; align-items: center; gap: 2px; padding: 0 6px; background: #1a1a1a; border-bottom: 1px solid #111; }
.pp-tabs .tab { font-size: 11.5px; color: #8f8f8f; padding: 7px 9px 6px; white-space: nowrap; }
.pp-tabs .tab.on { color: #e6e6e6; box-shadow: inset 0 -2px 0 #2d8ceb; }
.pp-tabs .tab b { font-weight: 400; opacity: .55; margin-left: 6px; } .pp-tabs .tab i { font-style: normal; opacity: .5; margin-right: 6px; }

/* Program monitor */
.monitor .screen { position: relative; flex: 1; min-height: 0; background: #000; display: grid; place-items: center; overflow: hidden; }
.monitor canvas { width: 100%; height: 100%; display: block; }
.title-safe { position: absolute; left: 8%; bottom: 12%; display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; border-left: 3px solid #fbbc05;
  background: rgba(0,0,0,.35); color: #fff; opacity: 0; transition: opacity .25s; pointer-events: none; }
.title-safe b { font-size: 15px; letter-spacing: .12em; } .title-safe span { font-size: 11px; opacity: .8; }
.title-safe.on { opacity: 1; }
.mon-info { flex: none; height: 26px; display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 11px; }
.mon-info .tc { color: #3c9cff; font: 600 12.5px/1 ui-monospace, Consolas, monospace; }
.mon-info .fit { color: #a8a8a8; } .mon-info .dur { margin-left: auto; font: 12px/1 ui-monospace, Consolas, monospace; color: #bdbdbd; }
.transport { flex: none; height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; border-top: 1px solid #161616; }
.transport button { width: 28px; height: 26px; border: 0; border-radius: 4px; background: transparent; color: #bcbcbc; cursor: pointer; display: grid; place-items: center; }
.transport button:hover { background: #2c2c2c; color: #fff; }
.transport button svg { width: 15px; height: 15px; }
.transport .play { width: 34px; color: #fff; }
.transport .play svg { width: 18px; height: 18px; }

/* DriveDrop panel */
.pr-panel { position: relative; min-width: 0; transition: opacity .6s .3s; }
.pr-panel iframe { flex: 1; width: 100%; border: 0; background: #232323; display: block; }
.hint { position: absolute; z-index: 4; top: 3px; right: 8px; padding: 3px 10px; border-radius: 980px; background: #fff; color: #121316; font-size: 11.5px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: opacity .3s; pointer-events: none; animation: bob 2.2s ease-in-out infinite; }
.hint.gone { opacity: 0; }
/* A little hand tapping the Export button, shown while nobody has tried the panel */
.tap { position: absolute; z-index: 5; width: 30px; height: 30px; margin: -4px 0 0 -6px; pointer-events: none; opacity: 0; transition: opacity .4s; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.tap.on { opacity: 1; animation: tap 1.6s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translate(14px, 14px) scale(1); } 45% { transform: translate(0, 0) scale(1); } 55% { transform: translate(0, 0) scale(.86); } 65% { transform: translate(0, 0) scale(1); } }
@keyframes bob { 50% { transform: translateY(-2px); } }

/* Timeline */
.timeline { grid-column: 1 / -1; }
.tl { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr) 52px; grid-template-rows: 30px minmax(0, 1fr); --head: 112px; }
.tl-head { grid-row: 1; grid-column: 1; display: flex; flex-direction: column; justify-content: center; padding-left: 8px; border-right: 1px solid #141414; }
.tl-tc { color: #3c9cff; font: 600 13px/1 ui-monospace, Consolas, monospace; }
.tl-tools { display: none; }
.tl-ruler { grid-row: 1; grid-column: 2; position: relative; background: #1b1b1b; border-bottom: 1px solid #141414; cursor: col-resize; overflow: hidden; }
.tl-ruler .io { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.14); display: none; }
.tl-ruler .io.on { display: block; }
.ticks { position: absolute; inset: 0; }
.ticks span { position: absolute; bottom: 0; width: 1px; height: 6px; background: #555; }
.ticks span.big { height: 11px; background: #777; }
.ticks em { position: absolute; top: 3px; font: normal 9.5px/1 ui-monospace, Consolas, monospace; color: #8a8a8a; transform: translateX(3px); white-space: nowrap; }
.tracks { grid-row: 2; grid-column: 1 / 3; display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-auto-rows: 1fr; overflow: hidden; }
.th { display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 11px; color: #a8a8a8; border-right: 1px solid #141414; border-bottom: 1px solid #191919; background: #202020; }
.th span { width: 22px; height: 16px; display: grid; place-items: center; border-radius: 3px; background: #2f3b4d; color: #cfe3ff; font-size: 10px; font-weight: 600; }
.th.a span { background: #2c4636; color: #c9f1d7; }
.th .eye { width: 14px; height: 9px; border-radius: 50%; border: 1.5px solid #8a8a8a; }
.th b { font-weight: 600; font-size: 9.5px; color: #8a8a8a; border: 1px solid #3a3a3a; border-radius: 3px; padding: 1px 4px; }
.lane { position: relative; border-bottom: 1px solid #191919; background: #1c1c1c; cursor: text; }
.lane:nth-of-type(2n) { background: #1e1e1e; }
.clip { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; overflow: hidden; cursor: pointer; font-size: 10.5px; color: #fff; padding: 2px 6px;
  white-space: nowrap; text-overflow: ellipsis; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); transition: box-shadow .15s, filter .15s; }
.clip:hover { filter: brightness(1.12); }
.clip.sel { box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #000; }
.clip.v { background: #8a7bd8; } .clip.v2 { background: #5b9bd5; } .clip.t { background: #c96bb5; }
.clip.au { background: #3e9b62; padding-top: 1px; }
.clip.au svg { position: absolute; left: 0; right: 0; bottom: 2px; width: 100%; height: 60%; opacity: .55; }
.playhead { position: absolute; top: 0; bottom: 0; left: var(--head); width: 0; pointer-events: none; z-index: 5; }
.playhead::before { content: ""; position: absolute; top: 0; bottom: 0; left: -0.5px; width: 1px; background: #3c9cff; }
.playhead span { position: absolute; top: 2px; left: -7px; width: 14px; height: 18px; background: #3c9cff; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); cursor: grab; pointer-events: auto; }
/* Audio meters on the right of the timeline */
.meters { grid-column: 3; grid-row: 1 / 3; display: flex; gap: 3px; padding: 8px 4px 8px 6px; background: #171717; border-left: 1px solid #111; }
.meters .m { position: relative; width: 8px; background: #050505; border-radius: 1px; overflow: hidden; }
.meters .m i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .08s linear;
  background: linear-gradient(to top, #2fb35a 0, #2fb35a 150px, #e9d23a 185px, #e24b3b 205px); background-position: bottom; background-size: 100% 210px; background-repeat: no-repeat; }
.meters .db { display: flex; flex-direction: column; justify-content: space-between; font: 9px/1 ui-monospace, Consolas, monospace; color: #7a7a7a; padding-left: 2px; }

/* ---------- Cards (scroll down) ---------- */
.cards { position: relative; z-index: 1; background: var(--blue); padding: 56px 20px 80px; }
.cards .wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.feat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 24px; color: #fff; }
.feat h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.feat p { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.84); }
footer { background: var(--blue); color: rgba(255,255,255,.8); font-size: 13.5px; padding: 0 20px 36px; }
footer .wrap { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover { color: #fff; text-decoration: underline; }

/* Phones: just the panel (no monitor/timeline) */
/* Phones: exactly the desktop Premiere, scaled down to fit the screen (zoom is set by premiere.js) */
@media (max-width: 760px) {
  .pr { width: 1160px; max-width: none; margin-top: 26px; margin-bottom: 30px; flex: none; }
}
/* ---------- Inner pages (install, privacy, terms): same look as the home page ---------- */
.doc-page { position: relative; padding: 112px 20px 72px; overflow: hidden; }
.doc-page::before { content: ""; position: absolute; left: -10%; right: -10%; top: -120px; height: 420px; z-index: 0; pointer-events: none; filter: blur(90px); opacity: .55;
  background: radial-gradient(30% 50% at 20% 50%, #fcd76a, transparent), radial-gradient(28% 50% at 50% 40%, #6fcf8d, transparent), radial-gradient(30% 50% at 80% 50%, #f58b80, transparent); }
.doc-wrap { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 44px 48px; box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(20, 40, 120, .08); }
.doc-wrap h1 { margin: 0 0 6px; font-size: clamp(32px, 4.6vw, 48px); letter-spacing: -0.04em; line-height: 1.05; text-align: start; }
html[lang="ar"] .doc-wrap h1 { letter-spacing: 0; line-height: 1.3; }
.doc-wrap h2 { margin: 32px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.doc-wrap p, .doc-wrap li { font-size: 15.5px; line-height: 1.65; color: #3d414b; }
.doc-wrap ul, .doc-wrap ol { padding-inline-start: 22px; }
.doc-wrap li { margin: 5px 0; }
.doc-wrap strong, .doc-wrap b { color: var(--ink); font-weight: 600; }
.doc-wrap a { color: #1a6ee8; text-decoration: underline; text-underline-offset: 2px; }
.doc-wrap code { font: 13px ui-monospace, Consolas, monospace; background: #f1f2f5; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
html[lang="ar"] .doc-wrap code { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.doc-wrap .updated, .doc-wrap .jump { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.doc-wrap .card { background: #f6f7f9; border-radius: 16px; padding: 14px 22px; }
.doc-wrap .note { color: var(--muted); font-size: 14.5px; }
.doc-wrap section { margin-bottom: 8px; }
.doc-page + footer { background: transparent; color: var(--muted); }
.doc-page + footer .wrap { border-top-color: var(--line); }
.doc-page + footer a:hover { color: var(--ink); }
@media (max-width: 600px) { .doc-wrap { padding: 28px 22px; border-radius: 18px; } }

/* ---------- Dark mode ---------- */
.theme-btn { width: 34px; height: 34px; padding: 0 !important; display: grid !important; place-items: center; }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
html[data-theme="dark"] .theme-btn .moon { display: none; }

html[data-theme="dark"] {
  --bg: #0b0c10; --ink: #f2f3f6; --muted: #9ba1ad; --line: rgba(255, 255, 255, 0.1); --blue: #2a4fc4; color-scheme: dark;
}
html[data-theme="dark"] .nav { background: #16171d; box-shadow: 0 0 0 1px var(--line); }
html[data-theme="dark"] .nav a, html[data-theme="dark"] .nav .ghost { color: #d9dbe1; }
html[data-theme="dark"] .nav a:hover { background: #22232b; }
html[data-theme="dark"] .nav .ghost { background: #16171d; border-color: #33353f; }
html[data-theme="dark"] .nav .solid, html[data-theme="dark"] .cta { background: #f2f3f6; color: #0b0c10; box-shadow: 0 6px 20px rgba(255, 255, 255, .08); }
html[data-theme="dark"] .nav .solid:hover, html[data-theme="dark"] .cta:hover { background: #ffffff; }
html[data-theme="dark"] .brand .mark { background: #f2f3f6; }
html[data-theme="dark"] .brand .mark path:last-child { stroke: #0b0c10; }
html[data-theme="dark"] .brand .mark path:first-child { fill: #0b0c10; }
html[data-theme="dark"] .badge, html[data-theme="dark"] .compat .os { background: #16171d; color: #d9dbe1; }
html[data-theme="dark"] .badge .dots i { border-color: #16171d; }
html[data-theme="dark"] .lead, html[data-theme="dark"] .compat { color: #b6bbc6; }
html[data-theme="dark"] .pr { box-shadow: 0 -16px 70px rgba(42, 79, 196, .35), 0 0 0 1px rgba(255,255,255,.08); }
html[data-theme="dark"] .doc-wrap { background: #121318; box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .doc-wrap p, html[data-theme="dark"] .doc-wrap li { color: #b6bbc6; }
html[data-theme="dark"] .doc-wrap a { color: #7db2ff; }
html[data-theme="dark"] .doc-wrap code { background: #1d1f26; color: #d9dbe1; }
html[data-theme="dark"] .doc-wrap .card { background: #191a20; }
html[data-theme="dark"] .doc-page::before { opacity: .28; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
