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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
import { useState } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import {
  Box,
  Container,
  Typography,
  Button,
  Grid,
  Link,
  Chip,
  Stepper,
  Step,
  StepLabel,
  StepContent,
  ToggleButton,
  ToggleButtonGroup,
  IconButton,
} from '@mui/material';
import OpenInNewIcon from '@mui/icons-material/OpenInNew';
import DownloadIcon from '@mui/icons-material/Download';
import WifiIcon from '@mui/icons-material/Wifi';
import UsbIcon from '@mui/icons-material/Usb';
import CheckCircleIcon from '@mui/icons-material/CheckCircle';
import PlayArrowIcon from '@mui/icons-material/PlayArrow';

import Layout from '../components/Layout';
import PageHero from '../components/PageHero';

// YouTube Video with styled overlay
function YouTubeEmbed({ videoId, title }) {
  const [isPlaying, setIsPlaying] = useState(false);
  const thumbnailUrl = '/assets/assembly-screenshot.png';

  if (isPlaying) {
    return (
      <Box
        component="iframe"
        src={`https://www.youtube.com/embed/${videoId}?autoplay=1`}
        title={title}
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
        allowFullScreen
        sx={{
          position: 'absolute',
          top: 0,
          left: 0,
          width: '100%',
          height: '100%',
          border: 'none',
        }}
      />
    );
  }

  return (
    <Box
      onClick={() => setIsPlaying(true)}
      sx={{
        position: 'absolute',
        top: 0,
        left: 0,
        width: '100%',
        height: '100%',
        cursor: 'pointer',
        overflow: 'hidden',
        '&:hover .play-button': {
          transform: 'translate(-50%, -50%) scale(1.1)',
          boxShadow: '0 8px 40px rgba(255, 149, 0, 0.5)',
        },
        '&:hover .overlay': {
          background: 'rgba(0, 0, 0, 0.3)',
        },
      }}
    >
      {/* Thumbnail */}
      <Box
        component="img"
        src={thumbnailUrl}
        alt={title}
        sx={{
          width: '100%',
          height: '100%',
          objectFit: 'cover',
        }}
      />
      
      {/* Overlay */}
      <Box
        className="overlay"
        sx={{
          position: 'absolute',
          inset: 0,
          background: 'rgba(0, 0, 0, 0.4)',
          transition: 'background 0.3s ease',
        }}
      />
      
      {/* Play Button */}
      <Box
        className="play-button"
        sx={{
          position: 'absolute',
          top: '50%',
          left: '50%',
          transform: 'translate(-50%, -50%)',
          width: 80,
          height: 80,
          borderRadius: '50%',
          background: 'linear-gradient(135deg, #FF9500 0%, #ff7b00 100%)',
          display: 'flex',
          alignItems: 'center',
          justifyContent: 'center',
          boxShadow: '0 4px 24px rgba(255, 149, 0, 0.4)',
          transition: 'all 0.3s ease',
        }}
      >
        <PlayArrowIcon sx={{ fontSize: 40, color: 'white', ml: 0.5 }} />
      </Box>
      
      {/* Watch label */}
      <Box
        sx={{
          position: 'absolute',
          bottom: 16,
          left: 16,
          display: 'flex',
          alignItems: 'center',
          gap: 1,
          px: 2,
          py: 1,
          borderRadius: 2,
          background: 'rgba(0, 0, 0, 0.6)',
          backdropFilter: 'blur(8px)',
        }}
      >
        <Typography sx={{ color: 'white', fontSize: 13, fontWeight: 600 }}>
          β–Ά Watch Assembly Guide
        </Typography>
      </Box>
    </Box>
  );
}

export default function GettingStarted() {
  const [version, setVersion] = useState('lite'); // 'lite' or 'wireless'

  return (
    <Layout transparentHeader>
      <PageHero
        eyebrow="30 minutes to get started"
        title="Welcome to Reachy Mini!"
        subtitle="Let's get your robot assembled, connected, and ready to play. No coding required β€” just follow these 2 simple steps."
        accentColor="#FF9500"
        stickers={[
          { src: '/assets/reachies/explorer.png', size: 240, top: 30, left: 120, rotation: -8 },
          { src: '/assets/reachies/captain.png', size: 220, bottom: 0, right: 140, rotation: 10 },
        ]}
        primitives={[
          { type: 'ring', color: '#FF9500', size: 100, top: 20, right: 200, rotation: 15 },
          { type: 'circle', color: '#f59e0b', size: 40, bottom: 60, left: 150 },
        ]}
      >
        <Chip
          icon={<CheckCircleIcon sx={{ color: 'white !important' }} />}
          label="Assemble"
          sx={{ bgcolor: 'rgba(255,255,255,0.15)', color: 'white', fontWeight: 600 }}
        />
        <Chip
          icon={<CheckCircleIcon sx={{ color: 'white !important' }} />}
          label="Connect & Play!"
          sx={{ bgcolor: 'rgba(255,255,255,0.15)', color: 'white', fontWeight: 600 }}
        />
      </PageHero>

      {/* Main Content */}
      <Container maxWidth="lg" sx={{ py: 10 }}>
        {/* Version Toggle */}
        <Box sx={{ mb: 8, textAlign: 'center' }}>
          <Typography variant="body1" color="text.secondary" sx={{ mb: 3 }}>
            Which version do you have?
          </Typography>
          <Box
            sx={{
              display: 'inline-flex',
              borderRadius: '50px',
              border: '2px solid',
              borderColor: 'divider',
              overflow: 'hidden',
            }}
          >
            <ToggleButtonGroup
              value={version}
              exclusive
              onChange={(_, v) => v && setVersion(v)}
              sx={{
                '& .MuiToggleButton-root': {
                  px: 4,
                  py: 1.5,
                  border: 'none',
                  borderRadius: 0,
                  fontWeight: 600,
                  fontSize: 15,
                  textTransform: 'none',
                  gap: 1,
                  color: 'text.secondary',
                  '&.Mui-selected': {
                    bgcolor: 'primary.main',
                    color: 'white',
                    '&:hover': {
                      bgcolor: 'primary.dark',
                    },
                  },
                  '&:not(:last-of-type)': {
                    borderRight: '1px solid',
                    borderColor: 'divider',
                  },
                },
              }}
            >
              <ToggleButton value="lite">
                <UsbIcon sx={{ fontSize: 20 }} /> Lite (USB)
              </ToggleButton>
              <ToggleButton value="wireless">
                <WifiIcon sx={{ fontSize: 20 }} /> Wireless
              </ToggleButton>
            </ToggleButtonGroup>
          </Box>
        </Box>

        {/* ======================== */}
        {/* LITE VERSION PROCEDURE */}
        {/* ======================== */}
        {version === 'lite' && (
          <>
            {/* Step 1: Assemble */}
            <Box sx={{ mb: 10, textAlign: 'center' }}>
              <Box sx={{ mb: 3 }}>
                <Typography
                  variant="overline"
                  sx={{
                    color: 'text.secondary',
                    letterSpacing: 2,
                    fontSize: 12,
                    fontWeight: 600,
                  }}
                >
                  Step 1
                </Typography>
                <Typography variant="h3" sx={{ mt: 0.5 }}>Assemble your robot</Typography>
              </Box>

              <Typography variant="body1" color="text.secondary" sx={{ mb: 4, maxWidth: 600, mx: 'auto' }}>
                Follow our visual guide to put together your Reachy Mini Lite.
                Most people finish in <strong>2-3 hours</strong> β€” our record is 43 minutes! πŸ†
              </Typography>

              <Box
                sx={{
                  position: 'relative',
                  paddingBottom: '56.25%',
                  mb: 3,
                  borderRadius: 3,
                  overflow: 'hidden',
                  backgroundColor: '#000',
                  maxWidth: 800,
                  mx: 'auto',
                  boxShadow: '0 8px 40px rgba(0, 0, 0, 0.2)',
                }}
              >
                <YouTubeEmbed videoId="PC5Yx950nMY" title="Reachy Mini Lite Assembly" />
              </Box>

              <Button
                variant="contained"
                size="large"
                href="https://huggingface.co/spaces/pollen-robotics/Reachy_Mini_LITE_Assembly_Guide"
                target="_blank"
                endIcon={<OpenInNewIcon />}
              >
                Open the Interactive Assembly Guide ✨
              </Button>
            </Box>

            {/* Step 2: Connect & Install */}
            <Box sx={{ mb: 10 }}>
              <Box sx={{ mb: 3 }}>
                <Typography
                  variant="overline"
                  sx={{
                    color: 'text.secondary',
                    letterSpacing: 2,
                    fontSize: 12,
                    fontWeight: 600,
                  }}
                >
                  Step 2
                </Typography>
                <Typography variant="h3" sx={{ mt: 0.5 }}>Connect & install the app</Typography>
              </Box>

              <Grid container spacing={4} alignItems="center">
                <Grid size={{ xs: 12, md: 6 }}>
                  <Stepper orientation="vertical">
                    <Step active completed={false}>
                      <StepLabel>
                        <Typography fontWeight={600}>Connect via USB</Typography>
                      </StepLabel>
                      <StepContent>
                        <Typography variant="body2" color="text.secondary">
                          Use the USB cable that came with your robot to connect it to your computer.
                        </Typography>
                      </StepContent>
                    </Step>
                    <Step active completed={false}>
                      <StepLabel>
                        <Typography fontWeight={600}>Download the desktop app</Typography>
                      </StepLabel>
                      <StepContent>
                        <Typography variant="body2" color="text.secondary" sx={{ mb: 2 }}>
                          The desktop app includes everything you need to control your Lite version.
                        </Typography>
                        <Button
                          variant="contained"
                          component={RouterLink}
                          to="/download"
                          startIcon={<DownloadIcon />}
                        >
                          Download App
                        </Button>
                      </StepContent>
                    </Step>
                    <Step active completed={false}>
                      <StepLabel>
                        <Typography fontWeight={600}>Open the app & play!</Typography>
                      </StepLabel>
                      <StepContent>
                        <Typography variant="body2" color="text.secondary">
                          The app will automatically detect your robot. Click "Wake Up" to start,
                          then explore 30+ apps created by the community β€” from hand tracking to AI conversations!
                        </Typography>
                      </StepContent>
                    </Step>
                  </Stepper>
                </Grid>

                <Grid size={{ xs: 12, md: 6 }}>
                  <Box
                    component="img"
                    src="/assets/desktop-app-screenshot--dark.png"
                    alt="Reachy Mini Control App"
                    sx={{ width: '100%', display: 'block', borderRadius: '12px' }}
                  />
                </Grid>
              </Grid>
            </Box>
          </>
        )}

        {/* ============================ */}
        {/* WIRELESS VERSION PROCEDURE */}
        {/* ============================ */}
        {version === 'wireless' && (
          <>
            {/* Step 1: Assemble */}
            <Box sx={{ mb: 10, textAlign: 'center' }}>
              <Box sx={{ mb: 3 }}>
                <Typography
                  variant="overline"
                  sx={{
                    color: 'text.secondary',
                    letterSpacing: 2,
                    fontSize: 12,
                    fontWeight: 600,
                  }}
                >
                  Step 1
                </Typography>
                <Typography variant="h3" sx={{ mt: 0.5 }}>Assemble your robot</Typography>
              </Box>

              <Typography variant="body1" color="text.secondary" sx={{ mb: 4, maxWidth: 600, mx: 'auto' }}>
                Follow our visual guide to put together your Reachy Mini.
                Most people finish in <strong>2-3 hours</strong> β€” our record is 43 minutes! πŸ†
              </Typography>

              <Box
                sx={{
                  position: 'relative',
                  paddingBottom: '56.25%',
                  mb: 3,
                  borderRadius: 3,
                  overflow: 'hidden',
                  backgroundColor: '#000',
                  maxWidth: 800,
                  mx: 'auto',
                  boxShadow: '0 8px 40px rgba(0, 0, 0, 0.2)',
                }}
              >
                <YouTubeEmbed videoId="WeKKdnuXca4" title="Reachy Mini Assembly" />
              </Box>

              <Button
                variant="contained"
                size="large"
                href="https://huggingface.co/spaces/pollen-robotics/Reachy_Mini_Assembly_Guide"
                target="_blank"
                endIcon={<OpenInNewIcon />}
              >
                Open the Interactive Assembly Guide ✨
              </Button>

              <Typography variant="body2" color="text.secondary" sx={{ mt: 3 }}>
                Beta version? Your guide is{' '}
                <Link href="https://huggingface.co/spaces/pollen-robotics/Reachy_Mini_BETA_Assembly_Guide" target="_blank">
                  here
                </Link>.
              </Typography>
            </Box>

            {/* Step 2: Connect to Wi-Fi */}
            <Box sx={{ mb: 10 }}>
              <Box sx={{ mb: 3 }}>
                <Typography
                  variant="overline"
                  sx={{
                    color: 'text.secondary',
                    letterSpacing: 2,
                    fontSize: 12,
                    fontWeight: 600,
                  }}
                >
                  Step 2
                </Typography>
                <Typography variant="h3" sx={{ mt: 0.5 }}>Connect to your Wi-Fi</Typography>
              </Box>

              <Stepper orientation="vertical">
                <Step active completed={false}>
                  <StepLabel>
                    <Typography fontWeight={600}>Power on your Reachy Mini</Typography>
                  </StepLabel>
                  <StepContent>
                    <Typography variant="body2" color="text.secondary">
                      Wait about 30 seconds for the robot to boot up.
                    </Typography>
                  </StepContent>
                </Step>
                <Step active completed={false}>
                  <StepLabel>
                    <Typography fontWeight={600}>Connect to the robot's Wi-Fi</Typography>
                  </StepLabel>
                  <StepContent>
                    <Box sx={{ bgcolor: 'background.alt', p: 2, borderRadius: 2, mb: 1 }}>
                      <Typography variant="body2">
                        <strong>Network:</strong> <code>reachy-mini-ap</code>
                      </Typography>
                      <Typography variant="body2">
                        <strong>Password:</strong> <code>reachy-mini</code>
                      </Typography>
                    </Box>
                  </StepContent>
                </Step>
                <Step active completed={false}>
                  <StepLabel>
                    <Typography fontWeight={600}>Open settings in your browser</Typography>
                  </StepLabel>
                  <StepContent>
                    <Button
                      variant="outlined"
                      size="small"
                      href="http://reachy-mini.local:8000/settings"
                      target="_blank"
                      endIcon={<OpenInNewIcon />}
                    >
                      http://reachy-mini.local:8000/settings
                    </Button>
                  </StepContent>
                </Step>
                <Step active completed={false}>
                  <StepLabel>
                    <Typography fontWeight={600}>Enter your Wi-Fi & play!</Typography>
                  </StepLabel>
                  <StepContent>
                    <Typography variant="body2" color="text.secondary" sx={{ mb: 2 }}>
                      The robot will restart and connect to your network. Then access the dashboard
                      to explore 30+ apps β€” from hand tracking to AI conversations!
                    </Typography>
                    <Button
                      variant="contained"
                      size="small"
                      href="http://reachy-mini.local:8000"
                      target="_blank"
                      endIcon={<OpenInNewIcon />}
                    >
                      Open Dashboard
                    </Button>
                  </StepContent>
                </Step>
              </Stepper>
            </Box>
          </>
        )}

        {/* CTA for Developers */}
    <Box
      sx={{
            p: 6,
            borderRadius: 4,
        background: 'linear-gradient(135deg, #1a1a2e 0%, #16213e 100%)',
        color: 'white',
        textAlign: 'center',
      }}
    >
          <Box
            component="img"
            src="/assets/reachy-how-to-create-app.svg"
            alt="Build"
            sx={{ width: 220, height: 220, mb: 3 }}
          />
          <Typography variant="h4" sx={{ mb: 2 }}>
            Want to build your own apps?
        </Typography>
          <Typography variant="body1" sx={{ mb: 4, opacity: 0.8, maxWidth: 500, mx: 'auto' }}>
            Learn how to code with the Python SDK, create custom experiences, 
            and share them with the community.
        </Typography>
          <Button
            variant="contained"
            size="large"
            component={RouterLink}
            to="/build"
            sx={{ px: 4 }}
          >
            Go to Build Guide β†’
          </Button>
        </Box>
      </Container>
    </Layout>
  );
}