* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
}
:root {
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-subheading: "Poppins", sans-serif;

  --fs-xs: clamp(0.75rem, 0.6vw + 0.5rem, 0.85rem); /* 12px → 13.6px */
  --fs-sm: clamp(0.875rem, 0.7vw + 0.55rem, 1rem); /* 14px → 16px */
  --fs-md: clamp(1rem, 0.8vw + 0.6rem, 1.125rem); /* 16px → 18px */
  --fs-lg: clamp(1.25rem, 1.2vw + 0.8rem, 1.5rem); /* 20px → 24px */
  --fs-xl: clamp(1.5rem, 1.8vw + 1rem, 2rem); /* 24px → 32px */
  --fs-2xl: clamp(2rem, 2.5vw + 1.2rem, 2.5rem); /* 32px → 40px */
  --fs-3xl: clamp(2.5rem, 3vw + 1.5rem, 3rem); /* 40px → 48px */
  --fs-4xl: clamp(3.5rem, 4vw + 2.8rem, 6.5rem); /* 48px → 56px */

  /* Brand Colours */
  --primary-color: #2a2a2b;
  --secondary-color: #897ae1;
  --accent-colorpurple: #7c8cff;
  --accent-colourpink: #d701fc;
  --gold-accent: #a77252;

  /* Neutrals */
  --light-background: #f3f4f8;
  --bg-light: #e8eaf3;
  --text-dark: #2b2b2b;
  --text-muted: #6b7280;

  /* Gradients */
  --gradient-purple: linear-gradient(180deg, #6a1bbe, #d701fc);
  --gradient-surface: linear-gradient(180deg, #f3f4f8, #e8eaf3);
  --gradient-dark-glow: radial-gradient(
    circle,
    rgba(106, 27, 190, 0.25),
    transparent 70%
  );

  /* Glows */
  --glow-purple: 0 0 22px rgba(167, 139, 250, 0.35);
  --glow-pink: 0 0 18px rgba(215, 1, 252, 0.35);

  /* Borders */
  --border-purple: 1px solid rgba(167, 139, 250, 0.3);
  --border-blue: 1px solid rgba(124, 140, 255, 0.25);

  /* Semantic */
  --color-success: #00d27a;
  --color-warning: #f5c542;
  --color-error: #ff4d4d;

  /* Gradients */
  /* --gradient-brand: linear-gradient(135deg, #38bdf8, #a855f7); */

  /* Borders */
  --border-purple: 1px solid rgba(167, 139, 250, 0.3);
  --border-blue: 1px solid rgba(124, 140, 255, 0.25);

  /* # 📏 **2. Spacing Scale (Technical Layout System)**  
A spacing scale gives your layout consistency and rhythm. */

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* ### How to use it  
- Hero padding: `var(--space-4xl)`  
- Section padding: `var(--space-3xl)`  
- Card padding: `var(--space-xl)`  
- Grid gaps: `var(--space-lg)`   */

  /* Typography scale */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-md: 1rem; /* 16px */
  --font-size-lg: 1.25rem; /* 20px */
  --font-size-xl: 1.5rem; /* 24px */
  --font-size-2xl: 2rem; /* 32px */
  --font-size-3xl: 2.5rem; /* 40px */
  --font-size-4xl: 3rem; /* 48px */

  /* ### Usage  
- Hero title → `var(--font-size-4xl)`  
- Section titles → `var(--font-size-2xl)`  
- Card titles → `var(--font-size-xl)`  
- Body text → `var(--font-size-md)`  
- Small labels → `var(--font-size-sm)`   */

  /* Shadow sistem */

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 6px 14px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 18px 40px rgba(0, 0, 0, 0.45);

  /* ### Usage  
- Cards (idle): `var(--shadow-sm)`  
- Cards (hover): `var(--shadow-lg)`  
- Hero elements: `var(--shadow-md)`  
- Buttons (hover): `var(--shadow-md)`   */

  /* Components tokens */
  /* Buttons */
  --btn-bg: var(--gradient-brand);
  --btn-text: #ffffff;
  --btn-hover-shadow: var(--shadow-md);
  --btn-radius: 10px;

  /* Cards */
  --card-bg: var(--color-surface-dark);
  --card-border: var(--border-purple);
  --card-radius: 16px;
  --card-padding: var(--space-xl);
  --card-hover-shadow: var(--shadow-lg);

  /* Inputs */
  --input-bg: var(--color-surface-light);
  --input-border: var(--border-blue);
  --input-radius: 8px;

  /* Navigation */
  --nav-bg: transparent;
  --nav-link: var(--color-text-primary);
  --nav-link-hover: var(--color-secondary);

  /* Section Layout */
  --section-padding: var(--space-3xl);
  --section-title-color: var(--color-secondary);

  /* Gradient system */

  /* --gradient-brand: linear-gradient(135deg, #38bdf8, #a855f7); */
  --gradient-surface: linear-gradient(180deg, #f3f4f8, #e8eaf3);
  --gradient-dark-glow: radial-gradient(
    circle,
    rgba(106, 27, 190, 0.25),
    transparent 70%
  );
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--light-background);
}

.container {
  max-width: 900px;
  margin: var(--space-4xl) auto;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  background: var(--secondary-color);
  color: var(--accent);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 999px;
  font-weight: 600;
}

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.phone-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4xl);
}

.phone-frame {
  width: 290px;
  height: 620px;
  border-radius: 36px;
  padding: 12px;
  background: rgb(46, 46, 46);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  margin: 2rem auto;
  position: relative;
}

.phone-frame video {
  width: 260px;
  height: 600px;
  display: block;
  border-radius: 24px;
}

/* Стъпки под видеото */
.steps-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.step-number {
  display: inline-block;
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
  width: 28px;
  height: 28px;
  text-align: center;
  line-height: 28px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
