/* =======================================================================
   RevScaled Design System v2 — Colors, Type, Material
   Blue-black canvas, one red in two roles, heavy Inter, smoked glass lit
   from one direction. Reference: editor recruiting ad A1 v22.
   Web-scale values; the ads' 1080px canvas values are translated, not copied.
   ======================================================================= */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- RED: two roles, one hue family ----------------------------------- */
  --rs-red:           #E8001C;                      /* Text: headline words, big numbers. Large type only */
  --rs-red-fill:      #D0021B;                      /* Objects: clip, play, checks, bars, stripes */
  --rs-red-light:     #FF4D4D;                      /* Emissive only: playheads, glows, light, rim tints */
  --rs-red-hot:       #FF8175;                      /* Brightest point of a light source (playhead cap) */
  --rs-red-glow:      rgba(255,77,77,0.55);         /* text-shadow / box-shadow glow */
  --rs-red-soft:      rgba(208,2,27,0.12);         /* Chip / selected fill */
  --rs-red-faint:     rgba(208,2,27,0.06);         /* Ghost highlight */

  /* --- CANVAS + SURFACES ------------------------------------------------- */
  --rs-bg:            #040507;                      /* Blue-black root (replaces pure #000) */
  --rs-bg-deep:       #020304;                      /* Under-light bands, footer */
  --rs-surface:       #0A0C11;                      /* Opaque panel base */
  --rs-glass:         linear-gradient(155deg, rgba(36,56,75,0.19), rgba(5,9,16,0.64) 28%, rgba(6,9,16,0.68) 65%, rgba(32,14,25,0.36)); /* lets the light read through */
  --rs-glass-blur:    blur(18px) saturate(1.18);
  --rs-tile:          linear-gradient(160deg, #1B2027, #090B10 48%, #07090D);

  /* --- FOREGROUND: solid cool grays (replaces white-opacity scale) ------- */
  --rs-fg-1:          #FFFFFF;                      /* Headlines, bold lead lines */
  --rs-fg-2:          #F5F6FA;                      /* Emphasis inside gray text */
  --rs-fg-3:          #BBC0CA;                      /* Body copy */
  --rs-fg-4:          #A4A8B1;                      /* Secondary lines, eyebrow base */
  --rs-fg-5:          #858A95;                      /* Meta, captions, URLs */
  --rs-fg-6:          #5D616B;                      /* Disabled, hairline labels */

  /* --- GLINTS: rim light only, never fills ------------------------------ */
  --rs-glint-cool:    #BED8EE;                      /* Top / left rims, cool counter-light */
  --rs-glint-white:   #E0E8FF;                      /* Top highlight line */
  --rs-glint-warm:    #FFD1A6;                      /* Bottom / right rims near red light */

  /* --- BORDERS ----------------------------------------------------------- */
  --rs-border:          rgba(255,255,255,0.08);     /* Hairlines, dividers, list rules */
  --rs-border-glass:    rgba(190,216,238,0.19);     /* Glass panel edge */
  --rs-border-tile:     rgba(255,255,255,0.12);     /* Icon tiles, inputs */
  --rs-border-red:      rgba(208,2,27,0.30);       /* Selected / focus-adjacent */

  /* --- RADII ------------------------------------------------------------- */
  --rs-radius-xs:    6px;      /* Clips, chips, checkboxes */
  --rs-radius-sm:    10px;     /* Small buttons (44px tall) */
  --rs-radius-md:    13px;     /* Buttons (56px tall), inputs */
  --rs-radius-lg:    16px;     /* Icon tiles, small panels */
  --rs-radius-xl:    20px;     /* Glass panels, cards, VSL frame */
  /* Button radius = 0.2-0.23 x height, from A1's 17px on 88px. No pills. */

  /* --- BEVEL + DEPTH ----------------------------------------------------- */
  /* Stacked hard offsets read as a physical slab edge: dark, cool lip, dark, red lip. */
  --rs-bevel-glass:   0 1px 0 rgba(224,232,255,0.40) inset, 0 -1px 0 rgba(208,119,123,0.20) inset,
                      0 4px 0 -1px #0B0E14, 0 5px 0 -1px rgba(183,203,219,0.19),
                      0 8px 0 -2px #080A0E, 0 9px 0 -2px rgba(255,121,118,0.17),
                      0 24px 44px rgba(0,0,0,0.73);
  --rs-bevel-tile:    inset 0 1px 1px rgba(230,239,255,0.26), inset -2px -2px 3px rgba(255,73,48,0.07),
                      0 2px 0 -1px #080B0F, 0 3px 0 -1px rgba(165,200,228,0.14),
                      0 5px 0 -2px #060709, 0 6px 0 -2px rgba(255,77,77,0.29),
                      0 10px 18px rgba(0,0,0,0.6);
  /* Calm card edge: inner hairlines instead of a border (Raycast). */
  --rs-edge-calm:     inset 0 1px 0 rgba(255,255,255,0.10), inset 0 0 0 1px rgba(255,255,255,0.06);
  --rs-card-calm:     linear-gradient(137deg, #111214 5%, #0C0D0F 76%);
  --rs-underglow:     0 18px 40px -6px rgba(255,77,77,0.45), 0 6px 18px -4px rgba(255,77,77,0.35);
  --rs-shadow-pop:    0 16px 48px rgba(0,0,0,0.80), 0 0 1px rgba(255,255,255,0.10);
  --rs-glow-red-sm:   0 0 14px var(--rs-red-glow);
  --rs-glow-red-md:   0 0 17px var(--rs-red-light), 0 0 45px rgba(255,77,77,0.56);

  /* --- PEARL BUTTON ------------------------------------------------------ */
  --rs-pearl-fill:    radial-gradient(ellipse at 22% 0%, #FFFFFF 12%, transparent 72%), linear-gradient(160deg, #FAFCFF, #DADFE5);
  --rs-pearl-ink:     #121215;
  /* Raycast's dark moat ring + soft white glow, then A1's stepped bevel underneath. */
  --rs-pearl-bevel:   inset 0 1px 0.4px #FFFFFF, inset 0 -1.5px 0.6px rgba(120,128,138,0.45),
                      0 0 0 2px rgba(0,0,0,0.5), 0 0 16px rgba(255,255,255,0.16), 0 3px 0 rgba(119,127,137,0.33),
                      0 4px 0 rgba(255,179,161,0.21), 0 10px 20px rgba(0,0,0,0.53),
                      0 10px 20px -12px rgba(255,77,77,0.60);

  /* --- SPACING ----------------------------------------------------------- */
  --rs-max-w:     1200px;
  --rs-gutter:    clamp(20px, 5vw, 72px);   /* A1's 72px margin at desktop, 20px on phones */
  --rs-space-1:   4px;
  --rs-space-2:   8px;
  --rs-space-3:   12px;
  --rs-space-4:   16px;
  --rs-space-5:   24px;
  --rs-space-6:   32px;
  --rs-space-7:   48px;
  --rs-space-8:   64px;
  --rs-space-9:   96px;
  --rs-space-10:  clamp(96px, 12vw, 160px); /* Section rhythm */

  /* --- MOTION ------------------------------------------------------------ */
  --rs-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --rs-dur-fast:    160ms;
  --rs-dur-med:     240ms;

  /* --- TYPE: families ---------------------------------------------------- */
  --rs-font-sans:  'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --rs-font-mono:  ui-monospace, 'SF Mono', Menlo, monospace;

  /* --- TYPE: roles (web scale) ------------------------------------------ */
  --rs-display-size:  clamp(44px, 7.2vw, 96px);  --rs-display-weight: 760;  --rs-display-lh: 0.98;  --rs-display-ls: -0.03em;
  --rs-display-long-size: clamp(36px, 4.8vw, 64px);
  --rs-h2-size:       clamp(32px, 4.4vw, 56px);  --rs-h2-weight: 720;       --rs-h2-lh: 1.02;       --rs-h2-ls: -0.03em;
  --rs-h3-size:       clamp(19px, 1.6vw, 22px);  --rs-h3-weight: 650;       --rs-h3-lh: 1.3;        --rs-h3-ls: -0.02em;

  --rs-lead-size:     clamp(19px, 1.9vw, 24px);  --rs-lead-weight: 650;     --rs-lead-lh: 1.4;      --rs-lead-ls: -0.02em;
  --rs-body-size:     clamp(16px, 1.25vw, 18px); --rs-body-weight: 450;     --rs-body-lh: 1.6;      --rs-body-ls: 0.01em;
  --rs-statement-size: clamp(20px, 1.8vw, 24px); --rs-statement-weight: 500;
  --rs-caption-size:  14px;                      --rs-caption-weight: 450;

  --rs-eyebrow-size:  clamp(12px, 1vw, 14px);    --rs-eyebrow-weight: 500;  --rs-eyebrow-ls: 0.06em;
  --rs-eyebrow-strong-weight: 650;
  --rs-mono-size:     12px;                      --rs-mono-ls: 0.08em;     /* Timecodes, figure tags, meta */
  --rs-button-size:   17px;                      --rs-button-weight: 650;   --rs-button-ls: -0.02em;
}

/* =======================================================================
   BASE
   ======================================================================= */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--rs-font-sans);
  background: var(--rs-bg);
  color: var(--rs-fg-3);
  font-size: var(--rs-body-size);
  font-weight: var(--rs-body-weight);
  line-height: var(--rs-body-lh);
  letter-spacing: var(--rs-body-ls);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =======================================================================
   TYPE ROLES
   ======================================================================= */

.rs-display {
  margin: 0;
  text-wrap: balance;
  font-size: var(--rs-display-size);
  font-weight: var(--rs-display-weight);
  line-height: var(--rs-display-lh);
  letter-spacing: var(--rs-display-ls);
  color: var(--rs-fg-1);
}
.rs-display--caps { text-transform: uppercase; }
.rs-display--long { font-size: var(--rs-display-long-size); letter-spacing: -0.035em; line-height: 1.02; } /* Locked long headlines: two lines on desktop */        /* Short display lines only (about 6 words or fewer) */
.rs-red { color: var(--rs-red); }                       /* Whole words or a whole line, never single letters */

.rs-h2 {
  margin: 0;
  text-wrap: balance;
  font-size: var(--rs-h2-size);
  font-weight: var(--rs-h2-weight);
  line-height: var(--rs-h2-lh);
  letter-spacing: var(--rs-h2-ls);
  color: var(--rs-fg-1);
}

.rs-h3 {
  margin: 0;
  font-size: var(--rs-h3-size);
  font-weight: var(--rs-h3-weight);
  line-height: var(--rs-h3-lh);
  letter-spacing: var(--rs-h3-ls);
  color: var(--rs-fg-1);
}

/* EYEBROW: gray uppercase, key words in bold white. Red is reserved for the headline. */
.rs-eyebrow {
  margin: 0;
  font-size: var(--rs-eyebrow-size);
  font-weight: var(--rs-eyebrow-weight);
  letter-spacing: var(--rs-eyebrow-ls);
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--rs-fg-4);
}
.rs-eyebrow strong { color: var(--rs-fg-2); font-weight: var(--rs-eyebrow-strong-weight); }

/* STATEMENT: Raycast section opener. Small, two-tone, the visual carries the weight. */
.rs-statement { margin: 0; font-size: var(--rs-statement-size); font-weight: var(--rs-statement-weight); line-height: 1.25; letter-spacing: 0.005em; color: var(--rs-fg-5); }
.rs-statement strong { display: block; font-weight: var(--rs-statement-weight); color: var(--rs-fg-1); }
.rs-statement--inline strong { display: inline; }

/* MONO LABEL: timecodes, FIG_ tags, technical meta. Never body copy. */
.rs-mono { font-family: var(--rs-font-mono); font-size: var(--rs-mono-size); font-weight: 500; letter-spacing: var(--rs-mono-ls); text-transform: uppercase; color: var(--rs-fg-5); font-variant-numeric: tabular-nums; }

/* LEAD PAIR: bold white statement, then a gray follow-up line. */
.rs-lead {
  margin: 0;
  font-size: var(--rs-lead-size);
  font-weight: 500;
  line-height: var(--rs-lead-lh);
  letter-spacing: var(--rs-lead-ls);
  color: var(--rs-fg-4);
}
.rs-lead strong { display: block; color: var(--rs-fg-1); font-weight: var(--rs-lead-weight); }

.rs-body { margin: 0; color: var(--rs-fg-3); }
.rs-body strong { color: var(--rs-fg-1); font-weight: 650; }
.rs-caption { font-size: var(--rs-caption-size); font-weight: var(--rs-caption-weight); color: var(--rs-fg-5); }

/* =======================================================================
   BRAND MARK
   ======================================================================= */

.rs-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: 0.08em; color: var(--rs-fg-1); text-transform: uppercase; }
.rs-brand img { width: 24px; height: 24px; }

/* =======================================================================
   PEARL BUTTON — every button. 56px default, 44px small.
   ======================================================================= */

.rs-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  height: 56px; padding: 0 20px 0 24px; min-width: 184px;
  border: 1px solid #FFFFFF; border-radius: var(--rs-radius-md);
  background: var(--rs-pearl-fill); color: var(--rs-pearl-ink);
  font: var(--rs-button-weight) var(--rs-button-size)/1 var(--rs-font-sans); letter-spacing: var(--rs-button-ls);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--rs-pearl-bevel);
  transition: transform var(--rs-dur-med) var(--rs-ease-smooth), box-shadow var(--rs-dur-med) var(--rs-ease-smooth);
}
.rs-btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--rs-dur-med) var(--rs-ease-smooth); }
.rs-btn:hover { transform: translateY(-1px); box-shadow: var(--rs-pearl-bevel), 0 14px 32px -10px rgba(255,77,77,0.55); }
.rs-btn:hover svg { transform: translateX(3px); }
.rs-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 1px #FFFFFF, inset 0 -1px 1px rgba(171,179,188,0.44), 0 1px 0 rgba(119,127,137,0.33), 0 2px 0 rgba(255,179,161,0.21), 0 4px 10px rgba(0,0,0,0.5); }
.rs-btn:focus-visible { outline: 2px solid var(--rs-red-light); outline-offset: 4px; }
.rs-btn--sm { height: 44px; min-width: 0; gap: 20px; padding: 0 14px 0 18px; border-radius: var(--rs-radius-sm); font-size: 15px; }
.rs-btn--sm svg { width: 16px; height: 16px; }
.rs-btn--full { display: flex; width: 100%; }

/* =======================================================================
   GLASS PANEL — hero and key moments only
   ======================================================================= */

.rs-glass {
  position: relative; isolation: isolate;
  border: 1px solid var(--rs-border-glass); border-radius: var(--rs-radius-xl);
  background: radial-gradient(ellipse at 7% 0%, rgba(153,200,238,0.10), transparent 38%), var(--rs-glass);
  backdrop-filter: var(--rs-glass-blur); -webkit-backdrop-filter: var(--rs-glass-blur);
  box-shadow: var(--rs-bevel-glass);
}
/* Outer rim: cool white top-left, warm near the red light bottom-right. */
.rs-glass::before {
  content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(ellipse 30% 4% at 30% 0%, rgba(241,249,255,0.96), transparent),
              radial-gradient(ellipse 28% 4% at 67% 100%, rgba(255,209,166,0.88), transparent),
              linear-gradient(125deg, rgba(216,233,255,0.40), rgba(107,142,173,0.09) 28%, rgba(188,211,227,0.31) 51%, rgba(255,155,135,0.37) 76%, rgba(113,143,178,0.17));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Inner rim: the second, finer edge that makes it read as thick glass. */
.rs-glass::after {
  content: ""; position: absolute; inset: 3px; z-index: 2; border-radius: calc(var(--rs-radius-xl) - 3px); padding: 0.7px; pointer-events: none;
  background: linear-gradient(120deg, rgba(220,239,255,0.28), rgba(160,205,255,0.04) 22%, rgba(255,255,255,0.04) 56%, rgba(255,137,119,0.33) 85%, rgba(184,216,239,0.08));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* FRAME: nested double frame for the VSL and product shots (Raycast). Outer tinted glass, inner solid. */
.rs-frame { position: relative; padding: 8px; border-radius: var(--rs-radius-xl); border: 1px solid var(--rs-border);
  background: radial-gradient(86% 50% at 51% 5%, rgba(255,150,150,0.11), rgba(222,226,255,0.06) 46%, rgba(241,242,255,0.02)), rgba(0,0,0,0.44);
  box-shadow: 0 0 40px 20px rgba(255,255,255,0.025), inset 0 0.5px 0 rgba(255,255,255,0.30); backdrop-filter: blur(2px); }
.rs-frame-inner { position: relative; overflow: hidden; border-radius: 12px; background: var(--rs-bg); border: 1px solid var(--rs-border); box-shadow: 0 0 2px rgba(255,255,255,0.19), inset 0 0.5px 0 rgba(255,255,255,0.10); }

/* CALM CARD: the default card. No glass, no light. */
.rs-card { border-radius: var(--rs-radius-lg); background: var(--rs-card-calm); box-shadow: var(--rs-edge-calm); }

/* FADE: objects dissolve into the canvas at their edges. */
.rs-fade-x { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rs-fade-b { -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }

/* =======================================================================
   SOLID RED — the active clip, play button and checks. Flat ink red:
   no gradient, sheen, grain, outline or glow. Light belongs to the
   light role (playheads, light bands), never to red objects.
   ======================================================================= */

.rs-red-block { background: var(--rs-red-fill); color: #FFFFFF; border: 0; box-shadow: none; }

.rs-play {
  display: grid; place-items: center;
  width: 88px; height: 88px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--rs-red-fill);
  transition: transform var(--rs-dur-med) var(--rs-ease-smooth);
}
.rs-play svg { display: block; width: 34%; height: 34%; }
.rs-play:hover { transform: scale(1.04); }

.rs-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--rs-red-fill); }
.rs-check svg { width: 62%; height: 62%; }

/* ICON TILE — app marks, feature glyphs */
.rs-tile {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: var(--rs-radius-lg);
  border: 1px solid var(--rs-border-tile); background: var(--rs-tile);
  box-shadow: var(--rs-bevel-tile); overflow: hidden;
}
.rs-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 60% 14% at 75% 100%, rgba(255,97,93,0.64), rgba(253,56,45,0.27) 35%, transparent 80%), radial-gradient(ellipse 40% 10% at 28% 0%, rgba(233,245,255,0.15), transparent 80%); }

/* =======================================================================
   LIGHT BAND — directional light through glass, behind a key moment.
   Static image generated per section (see README), masked to black at the
   top and bottom so text above and below always sits on plain canvas.
   ======================================================================= */

.rs-light { position: relative; isolation: isolate; }
.rs-light::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--rs-light-image, none) center / cover no-repeat;
  -webkit-mask: var(--rs-light-mask, linear-gradient(transparent, #000 22%, #000 78%, transparent));
          mask: var(--rs-light-mask, linear-gradient(transparent, #000 22%, #000 78%, transparent));
}

/* DIVIDER — hairline with a short red accent at the start */
.rs-divider { position: relative; height: 1px; background: var(--rs-border); border: 0; margin: 0; }
.rs-divider::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 1px; background: var(--rs-red-fill); box-shadow: 0 0 10px var(--rs-red-glow); }

@media (prefers-reduced-motion: reduce) {
  .rs-btn, .rs-btn svg { transition: none; }
}
