/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; }
:where(body) { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: var(--text); background: var(--bg); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* ---------- Theme tokens (replace with your Figma values) ---------- */
:root{
  /* Brand */
  --brand-50:#f5f7ff; --brand-100:#e8ecff; --brand-200:#cfd8ff; --brand-300:#a7b7ff;
  --brand-400:#7a90ff; --brand-500:#536bff; --brand-600:#3f53e6; --brand-700:#3242b8;
  --brand-800:#283692; --brand-900:#1f2a72;

  /* Neutral */
  --bg:#0b0b0c;
  --surface:#121214;
  --surface-alt:#16161a;
  --text:#ffffff;
  --muted:#b7bcc7;
  --border: #2a2a2f;

  /* Layout */
  --container-max: 1160px;
  --gutter: 16px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);

    --text: #F5F5F5;                                   /* Text */
  --primary: #7F00FF;                                /* Primary (CTA) */
  --secondary-text: #AAAAAA;                         /* Secondary_Text */
  --create-card-grad: linear-gradient(180deg,        /* Linear Gradient (Color dodge) */
    #666666 0%, #262626 15%, #262626 90%, #595959 100%);

      --accent: #00FFFF;        /* Accent */
  --black: #000000;      

    --footer-titlebar: linear-gradient(180deg, rgba(80,33,121,.95) 0%, rgba(80,33,121,0) 100%);


      --bg:#000000;
  --white:#ffffff;
  --primary:#7F00FF;
  --border:#1f1f1f;
  --container-max:1160px;
  --gutter:16px;
  --radius:16px;

   --ec-bg:#12061A;      /* “Background” token used INSIDE chips */
  --ec-accent:#00FFFF;  /* outline color */
  --ec-text:#F5F5F5;    /* text on dark */
   /* Figma tokens for the hero */
  --ec-grad: linear-gradient(158deg, #7F00FF 0%, #00FFFF 100%);
  --ec-bg-chip: #12061A;  /* “Background” token used inside chips & labels */
  --ec-text-chip: #F5F5F5;/* text on chip/labels */

}


:root { --header-h: 64px; }          /* adjust if your header height differs */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }


/* ---------- Helpers ---------- */
.container{
  width: min(100% - 2*var(--gutter), var(--container-max));
  margin-inline: auto;
}

.section { padding: clamp(48px, 6vw, 96px) 0; }
.section--alt { background: var(--surface-alt); }

.stack{ display:flex; flex-direction:column; }
.stack.gap-2 > * + *{ margin-top: .5rem; }
.stack.gap-3 > * + *{ margin-top: 1rem; }
.center{ align-items:center; text-align:center; }

.row{ display:flex; flex-wrap:wrap; align-items:center; }
.row.gap-2 > * { margin-right: .75rem; }
.row.gap-2 > *:last-child{ margin-right: 0; }

.grid{ display:grid; gap: clamp(16px, 3vw, 32px); }
.grid--2{ grid-template-columns: 1fr; }
.grid--3{ grid-template-columns: 1fr; }
@media (min-width: 720px){
  .grid--2{ grid-template-columns: 1.1fr .9fr; }
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
}

.cards > *{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow);
}

/* ---------- Typography (fluid) ---------- */
.h1{ font-weight: 800; font-size: clamp(28px, 4.5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
.h2{ font-weight: 800; font-size: clamp(22px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -0.01em; }
.lead{ color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); line-height: 1.6; }
.muted{ color: var(--muted); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--brand-500); color:#fff; border:1px solid transparent;
  padding: .8rem 1.1rem; border-radius: 999px; font-weight: 700;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 18px rgba(83,107,255,.35);
}
.btn:hover{ transform: translateY(-1px); background: var(--brand-600); }
.btn:active{ transform: translateY(0); }
.btn--ghost{
  background: transparent; color: #fff; border-color: var(--brand-500);
}
.btn--sm{ padding: .55rem .9rem; font-size: .95rem; }
.btn--lg{ padding: 1rem 1.4rem; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50; background: rgba(18,18,20,.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row{ display:flex; align-items:center; justify-content:space-between; height: 64px; }

.brand img{ display:block; height: 28px; width:auto; }

.nav{ display:none; }
.nav__list{ list-style:none; margin:0; padding:0; display:flex; gap: 20px; align-items:center; }
.nav__list a{ color: var(--muted); }
.nav__list a:hover{ color:#fff; }

.nav-toggle{
  inline-size: 42px; block-size: 42px; border:1px solid var(--border); border-radius: 10px;
  background: var(--surface); display:grid; place-items:center;
}
.nav-toggle__bar{
  position: relative; width: 20px; height: 2px; background:#fff;
}
.nav-toggle__bar::before, .nav-toggle__bar::after{
  content:""; position:absolute; left:0; width:100%; height:2px; background:#fff;
}
.nav-toggle__bar::before{ transform: translateY(-6px); }
.nav-toggle__bar::after{ transform: translateY(6px); }

/* mobile-first: nav closed; open when [data-open="true"] */
@media (max-width: 959px){
  .nav[data-open="true"]{ display:block; position:absolute; inset:64px 0 auto 0; background: var(--surface); border-bottom:1px solid var(--border); }
  .nav[data-open="true"] .nav__list{ flex-direction:column; align-items:stretch; gap:0; }
  .nav[data-open="true"] .nav__list > li a{ padding:14px 20px; display:block; }
}
@media (min-width: 960px){
  .nav{ display:block; }
  .nav-toggle{ display:none; }
}

/* ---------- Hero ---------- */
.hero .hero__media{
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow:hidden;
  background: #09090b;
}

/* ---------- CTA & Footer ---------- */
.cta .stack{ max-width: 720px; margin-inline:auto; }
.site-footer{ padding: 36px 0; background: #0e0e12; border-top: 1px solid var(--border); }
.footer-grid{
  display:grid; gap: 24px;
  grid-template-columns: 1fr;
}
.footer-links{ list-style:none; display:flex; gap: 18px; margin:0; padding:0; }
@media (min-width: 720px){
  .footer-grid{ grid-template-columns: 1fr auto; align-items:center; }
}

/* ---------- A11y ---------- */
.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position:fixed; left: 16px; top: 12px; width:auto; height:auto; padding:10px 12px; background:#fff; color:#000; z-index:9999;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration:.01ms !important; }
}




/* Header container */
.site-header--top{
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-row--top{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;          /* matches Figma “bottom aligned” */
  padding-block:8px;
  padding-inline: clamp(16px, 6vw, 64px);
  gap:16px;
}

/* Brand row: icon + title */
.brand--row{
  display:flex; align-items:flex-end; gap:16px; text-decoration:none;
}
.brand--row img{
  width:105px; height:auto; display:block; /* desktop size per your first slice */
}
.brand-title{
  color: var(--white);
  /* If you have a specific display font, plug it here: */
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3.6vw, 48px);   /* scales nicely up to desktop look */
  line-height: 1;                         /* tight like your screenshot */
  letter-spacing: -0.02em;
  white-space: nowrap;
}


/* wordmark below the logo */
.ec-footer__brandname{
  color:#fff;
  font: 700 22px/1.2 Orbitron, Montserrat, system-ui, sans-serif; /* matches headings vibe */
  letter-spacing:.2px;
  text-align:center;
}

@media (max-width:480px){
  .ec-footer__brandname{ font-size:18px; }
}



/* Right: login pill */
.header-right{ display:flex; align-items:center; padding-bottom:8px; }
.btn--login{
  background: var(--primary);
  color: var(--white);
  border-radius: 16px;
  height:32px;
  padding: 0 16px;
  border: 0;
  font: 400 16px/32px Montserrat, sans-serif;  /* per spec */
  box-shadow: none;
}
.btn--login:hover{ filter: brightness(1.1); }

/* Responsive tweaks */
@media (max-width: 720px){
  .header-row--top{ align-items:center; }
  .brand--row img{ width:84px; }
  .brand-title{ font-size: clamp(18px, 6vw, 28px); }
}




/* Use Montserrat per Figma (weights we need) */
@font-face{
  font-family: "Montserrat";
  src: local("Montserrat");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
/* Fonts used in this slice (swap to local files if needed) */
@font-face{
  font-family:"Orbitron";
  src: local("Orbitron");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Inter";
  src: local("Inter");
  font-weight:400 600;
  font-style:normal;
  font-display:swap;
}

body{ font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }



/* --- Header: match Figma --- */
.site-header--top{
  background:#000; border-bottom:1px solid #1f1f1f;
}
.header-row--top{
  display:flex;
  justify-content:space-between;
  align-items:center;        /* center, not bottom */
  min-height:64px;           /* fixed bar height */
  padding-block:8px;
  padding-inline:clamp(16px, 6vw, 64px);
  gap:16px;
}

/* Brand (logo + wordmark) */
.brand--row{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand--row img{
  height:48px;               /* tighter like the comp */
  width:auto; display:block;
}
.brand-title{
  color:#fff;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight:800;
  font-size:clamp(20px, 2.4vw, 32px); /* smaller than before to match screenshot */
  line-height:1;
  letter-spacing:-0.02em;
  white-space:nowrap;
}

/* LOG IN pill — keep on one line and scale gracefully */
.header-right{ display:flex; align-items:center; }
.btn--login{
  display:inline-flex; align-items:center; justify-content:center;
  background:#7F00FF; color:#fff;
  height:32px; padding:0 14px;
  border:0; border-radius:16px;
  font:400 14px/1 Montserrat, sans-serif;  /* smaller text to avoid wrap */
  white-space:nowrap;                       /* prevent “LOG”/“IN” split */
  min-width:84px;                           /* keeps it pill-like */
}
.btn--login:hover{ filter:brightness(1.1); }

/* Responsive tweaks so the pill never overlaps or wraps */
@media (max-width:560px){
  .brand--row img{ height:42px; }
  .brand-title{ font-size:clamp(18px, 5vw, 24px); }
  .btn--login{ height:28px; padding:0 12px; font-size:13px; min-width:78px; }
}
@media (max-width:380px){
  .brand-title{ font-size:18px; }
  .btn--login{ height:26px; padding:0 10px; font-size:12.5px; min-width:72px; }
}


/* --- Hero layout --- */
.ec-hero{
  padding-block: clamp(40px, 8vw, 96px);
}
.ec-hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 48px);
  padding-inline: clamp(16px, 6vw, 128px); /* matches Figma’s 128 on desktop */
}
@media (min-width: 960px){
  .ec-hero__grid{
    grid-template-columns: 1.1fr .9fr; /* left copy + right image */
  }
}



/* Copy column */
.ec-hero__copy{ display:flex; flex-direction:column; gap:32px; padding-top:64px; }
.ec-hero__title{
 color: #12061A;

  /* color: var(--ec-text);                    readable on black page */
  font: 700 clamp(28px, 5vw, 48px)/1.1 Orbitron, system-ui, sans-serif;
  margin:0;
}
.ec-hero__lead{
      color: #12061A;

  /* color: var(--ec-text); */
  opacity:.84;
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin:0;
}

/* Actions */
.ec-hero__actions{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ec-chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 16px 32px;
  background: var(--ec-bg-chip);
  color: var(--ec-text-chip);
  border-radius: 28px;
  border: 1px solid var(--ec-accent);     /* cyan outline */
  box-shadow: 0 6px 3px rgba(0,0,0,.10);
  text-transform: uppercase;
  font: 600 20px/1 Montserrat, system-ui, sans-serif;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}
.ec-chip:hover{ transform: translateY(-1px); box-shadow: 0 10px 14px rgba(0,0,0,.16); }
.ec-chip:active{ transform: translateY(0); }

/* Media column */
.ec-hero__media{
  display:grid; place-items:center; padding-top:32px;
}
.ec-hero__media img{
  width: min(100%, 448px);
  height: auto;
  aspect-ratio: 1/1;              /* keeps square feel as it scales */
  border-radius: 20px;
  background: #0f0f12;
}

/* Small-screen refinements */
@media (max-width: 560px){
  .ec-chip{ padding: 14px 22px; font-size: 16px; }  /* tighter chips */
}

/* Same horizontal padding as hero grid; 32px separation from the grid above */
.ec-typegrid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 192px));
  justify-content:start;                                   /* left-aligned like Figma */
  padding-inline: clamp(16px, 6vw, 128px);
  margin-top: 32px;
}


/* Card */
.ec-typecard{
  margin:0;
  border:1px solid var(--ec-accent);            /* Figma outline */
  border-radius:16px;
  overflow:hidden;
  background: transparent;
}

/* Image keeps a square, scales down on small screens */
.ec-typecard img{
  display:block;
  width:min(100%, 192px);
  aspect-ratio: 1 / 1;
  height:auto;
}

/* Label bar */

.ec-typecard__label{
  display:grid; place-items:center;
  padding-block: 8px;
  min-height: 32px;
  background: var(--ec-bg-chip);        /* dark bar */
  color: var(--ec-text-chip);           /* #F5F5F5 */
  font: 400 20px/1 Inter, system-ui, sans-serif;
  min-height: 32px;
}


/* Tiny screens: slightly tighter labels */
@media (max-width: 560px){
  .ec-typecard__label{ font-size:16px; }
}

/* HERO (gradient section) */
.ec-hero{
  background: var(--ec-grad);
  padding-block: clamp(40px, 8vw, 96px);
  padding-bottom: 16px;              /* per Figma */
}

/* keep the desktop side padding at 128px like your design */
.ec-hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 48px);
  padding-inline: clamp(16px, 6vw, 128px);
}
@media (min-width: 960px){
  .ec-hero__grid{ grid-template-columns: 1.1fr .9fr; }
}


/* ---------- Section wrapper ---------- */
.ec-create{ padding-block: 32px; } /* top & bottom */
.ec-create__wrap{
  padding-inline: clamp(16px, 6vw, 128px); /* left & right only */
}

/* ---------- Header ---------- */
.ec-create__head{ display:flex; flex-direction:column; gap:16px; margin-bottom:32px; }
.ec-create__title{
  color: var(--text);
  font: 400 clamp(24px, 3vw, 32px)/1.2 Orbitron, system-ui, sans-serif;
  margin: 0;
}
.ec-create__sub{
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin: 0;
}

/* ---------- Cards grid ---------- */
.ec-create__grid{
  display:grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px){
  .ec-create__grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Card ---------- */
.ec-card{
  padding-top: 8px; padding-bottom: 32px;
  background: var(--create-card-grad);
  background-blend-mode: color-dodge; /* per Figma */
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.ec-card__media{ padding-block: 32px; display:grid; place-items:center; }
.ec-card__media img{ display:block; max-width:100%; height:auto; }

.ec-card__title{
  text-align:center;
  color: var(--text);
  font: 400 clamp(22px, 3vw, 32px)/1.2 Orbitron, system-ui, sans-serif;
  margin: 0 16px;
}
.ec-card__text{
  text-align:center;
  color: var(--text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin: 8px 16px 0;
}

/* ---------- CTA ---------- */
.ec-create__cta{ display:grid; place-items:center; margin-top:32px; }

/* CTA pill: reuse your base, add cyan outline for this section */
.btn--primary-pill{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 16px 32px;
  background: var(--primary);
  color: var(--text);
  border-radius: 28px;
  box-shadow: 0 6px 3px rgba(0,0,0,.10);
  text-transform: uppercase;
  font: 600 20px/1 Montserrat, system-ui, sans-serif;
  white-space: nowrap;
}
.btn--accent-outline{
  border: 1px solid var(--accent);
}
@media (max-width: 560px){
  .btn--primary-pill{ padding: 14px 24px; font-size: 16px; }
}


/* ===== Layout ===== */
.ec-imagecreate{
  padding-block: 32px;
}
.ec-imagecreate__grid{
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-inline: clamp(16px, 6vw, 128px);
}
@media (min-width: 960px){
  .ec-imagecreate__grid{
    grid-template-columns: 1.1fr .9fr; /* copy | visual */
    align-items: center;
  }
}

/* ===== Copy side ===== */
.ec-imagecreate__copy{
  display: flex; flex-direction: column; gap: 32px;
}
.ec-imagecreate__head{
  display: flex; flex-direction: column; gap: 16px;
}
.ec-imagecreate__title{
  color: var(--text);
  font: 400 clamp(24px, 3vw, 32px)/1.2 Orbitron, system-ui, sans-serif;
  margin: 0;
}
.ec-imagecreate__sub{
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin: 0;
}

/* Steps list */
.ec-imagecreate__list{
  margin: 0; padding: 0;
  list-style: none;
  display: grid; gap: 8px;
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
}
.ec-imagecreate__list li{
  position: relative; padding-left: 18px;
}
.ec-imagecreate__list li::before{
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); /* cyan bullet */
  transform: translateY(-50%);
}



/* ===== Visual side ===== */
.ec-imagecreate__media{
  display: grid; place-items: center;
}
.ec-screenshot{
  margin: 0;
  background: var(--black);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  max-width: 512px;
  width: 100%;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.ec-screenshot img{
  display:block; width:100%; height:auto;
}


/* Image NFT section CTA — match Figma pill */
.ec-imagecreate .btn--primary-pill{
  height: 56px;                 /* fixed pill height */
  padding-inline: 28px;         /* horizontal only */
  border-radius: 28px;          /* full pill */
  font-size: 20px;              /* Montserrat 600, uppercase already set */
  line-height: 1;               /* let flex center it */
  min-width: 320px;             /* Figma visual width for this text */
  border: 1px solid var(--accent);           /* cyan edge per spec */
  box-shadow: 0 6px 3px rgba(0,0,0,.10);     /* keep subtle drop */
}




/* Responsive tighten so it never overflows on small phones */
@media (max-width: 480px){
  .ec-imagecreate .btn--primary-pill{
    min-width: clamp(220px, 72vw, 320px);
    height: 48px;
    font-size: 16px;
    border-radius: 24px;
  }
}


/* ===== Layout ===== */
.ec-videocreate{ padding-block: 32px; }
.ec-videocreate__grid{
  display: grid;
  gap: 64px;                                     /* matches Figma gap */
  grid-template-columns: 1fr;                    /* mobile first */
  padding-inline: clamp(16px, 6vw, 128px);
  align-items: center;
}
@media (min-width: 960px){
  .ec-videocreate__grid{
    grid-template-columns: .9fr 1.1fr;           /* media | copy */
  }
}

/* ===== Media ===== */
.ec-videocreate__media{ display:grid; place-items:center; }
.ec-screenshot{
  margin: 0;
  background: var(--black);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 512px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.ec-screenshot img{ display:block; width:100%; height:auto; }

/* ===== Copy ===== */
.ec-videocreate__copy{ display:flex; flex-direction:column; gap:32px; }
.ec-videocreate__head{ display:flex; flex-direction:column; gap:16px; }
.ec-videocreate__title{
  color: var(--text);
  font: 400 clamp(24px, 3vw, 32px)/1.2 Orbitron, system-ui, sans-serif;
  margin: 0;
}
.ec-videocreate__sub{
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin: 0;
}

/* Steps */
.ec-videocreate__list{
  margin: 0; padding: 0;
  list-style: none;
  display: grid; gap: 8px;
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
}
.ec-videocreate__list li{
  position: relative; padding-left: 18px;
}
.ec-videocreate__list li::before{
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);                     /* cyan bullet */
  transform: translateY(-50%);
}

/* CTA — match the pill sizing you wanted */
.ec-videocreate .btn--primary-pill{
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px;
  padding-inline: 28px;
  min-width: 320px;
  border-radius: 28px;
  background: var(--primary);
  color: var(--text);
  font: 600 20px/1 Montserrat, system-ui, sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--accent);               /* btn--accent-outline */
}
@media (max-width: 480px){
  .ec-videocreate .btn--primary-pill{
    min-width: clamp(220px, 72vw, 320px);
    height: 48px; font-size: 16px; border-radius: 24px;
  }
}

/* Optional: ensure copy appears first on small screens for readability */
@media (max-width: 959.98px){
  .ec-videocreate__copy{ order: -1; }            /* copy above media on phones */
}



/* Wrapper & header */
.ec-effects{ padding-block:32px; }
.ec-effects__wrap{ padding-inline: clamp(16px, 6vw, 128px); }
.ec-effects__head{ display:flex; flex-direction:column; gap:16px; margin-bottom:32px; }
.ec-effects__title{
  color: var(--text);
  font: 400 clamp(24px, 3vw, 32px)/1.2 Orbitron, system-ui, sans-serif;
  margin: 0;
}
.ec-effects__sub{
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin: 0;
}

/* Grid of 192×192 tiles */
.ec-effects__grid{
  display:grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 192px));
  justify-content: center; /* center like your Figma */
}
.ec-effect{
  margin:0;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.ec-effect__img{
  width:192px; height:192px; object-fit:cover;
  border-radius:16px;
  border:1px solid transparent;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: box-shadow .2s ease, border-color .2s ease, transform .12s ease;
}
.ec-effect__img:hover{
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 16px rgba(0,0,0,.28);
  transform: translateY(-2px);
}
.ec-effect__name{
  min-height:32px;
  display:grid; place-items:center;
  text-align:center;
  color: var(--text);
  font: 400 20px/1 Inter, system-ui, sans-serif;
  padding-inline: 4px;
}

/* CTA (same pill sizing as previous sections) */
.ec-effects__cta{ display:grid; place-items:center; margin-top: 16px; }
.ec-effects .btn--primary-pill{
  display:inline-flex; align-items:center; justify-content:center;
  height:56px; padding-inline:28px; min-width:320px;
  border-radius:28px;
  background: var(--primary);
  color: var(--text);
  font: 600 20px/1 Montserrat, system-ui, sans-serif;
  text-transform: uppercase; white-space:nowrap;
}
@media (max-width:480px){
  .ec-effects .btn--primary-pill{
    min-width: clamp(220px, 72vw, 320px);
    height:48px; font-size:16px; border-radius:24px;
  }
}


/* Reuse tokens already defined:
   --text:#F5F5F5; --secondary-text:#AAAAAA; --accent:#00FFFF; --primary:#7F00FF; --black:#000; */

/* Layout */
.ec-morph{ padding-block:32px; }
.ec-morph__grid{
  display:grid;
  gap:64px;
  grid-template-columns:1fr;                 /* mobile-first */
  padding-inline: clamp(16px, 6vw, 128px);
  align-items:center;
}
@media (min-width:960px){
  .ec-morph__grid{ grid-template-columns: 1.1fr .9fr; }  /* copy | media */
}

/* Copy */
.ec-morph__copy{ display:flex; flex-direction:column; gap:32px; }
.ec-morph__head{ display:flex; flex-direction:column; gap:16px; }
.ec-morph__title{
  color: var(--text);
  font: 400 clamp(24px, 3vw, 32px)/1.2 Orbitron, system-ui, sans-serif;
  margin:0;
}
.ec-morph__sub{
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin:0;
}

/* Bullet list + nested sublist */
.ec-morph__list{
  margin:0; padding:0; list-style:none;
  display:grid; gap:8px;
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
}
.ec-morph__list > li{
  position:relative; padding-left:18px;
}
.ec-morph__list > li::before{
  content:""; position:absolute; left:0; top:.7em;
  width:8px; height:8px; border-radius:50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.ec-morph__sublist{
  margin:.5rem 0 0; padding:0; list-style:none;
  display:grid; gap:6px;
}
.ec-morph__sublist li{
  position:relative; padding-left:16px;
}
.ec-morph__sublist li::before{
  content:""; position:absolute; left:0; top:.7em;
  width:6px; height:6px; border-radius:50%;
  border:2px solid var(--accent);           /* hollow dot to differentiate */
  transform: translateY(-50%);
}

/* CTA pill (match previous sections) */
.ec-morph .btn--primary-pill{
  display:inline-flex; align-items:center; justify-content:center;
  height:56px; padding-inline:28px; min-width:320px;
  border-radius:28px;
  background: var(--primary); color: var(--text);
  font: 600 20px/1 Montserrat, system-ui, sans-serif;
  text-transform:uppercase; white-space:nowrap;
}
@media (max-width:480px){
  .ec-morph .btn--primary-pill{
    min-width: clamp(220px, 72vw, 320px);
    height:48px; font-size:16px; border-radius:24px;
  }
}

/* Media (reuses the generic screenshot card style) */
.ec-morph__media{ display:grid; place-items:center; }
.ec-screenshot{
  margin:0; width:100%; max-width:512px;
  background: var(--black);
  border-radius:16px; overflow:hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.ec-screenshot img{ display:block; width:100%; height:auto; }



/* Layout */
.ec-fractal{ padding-block:32px; }
.ec-fractal__grid{
  display:grid;
  gap:64px;
  grid-template-columns:1fr;                 /* mobile-first */
  padding-inline: clamp(16px, 6vw, 128px);
  align-items:center;
}
@media (min-width:960px){
  .ec-fractal__grid{ grid-template-columns: .9fr 1.1fr; } /* media | copy */
}

/* Copy */
.ec-fractal__copy{ display:flex; flex-direction:column; gap:32px; }
.ec-fractal__head{ display:flex; flex-direction:column; gap:16px; }
.ec-fractal__title{
  color: var(--text);
  font: 400 clamp(24px, 3vw, 32px)/1.2 Orbitron, system-ui, sans-serif;
  margin:0;
}
.ec-fractal__sub{
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin:0;
}

/* Steps list */
.ec-fractal__list{
  margin:0; padding:0; list-style:none;
  display:grid; gap:8px;
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
}
.ec-fractal__list li{
  position:relative; padding-left:18px;
}
.ec-fractal__list li::before{
  content:""; position:absolute; left:0; top:.7em;
  width:8px; height:8px; border-radius:50%;
  background: var(--accent);                    /* cyan bullet */
  transform: translateY(-50%);
}

/* CTA pill (same sizing as earlier sections) */
.ec-fractal .btn--primary-pill{
  display:inline-flex; align-items:center; justify-content:center;
  height:56px; padding-inline:28px; min-width:320px;
  border-radius:28px;
  background: var(--primary); color: var(--text);
  font: 600 20px/1 Montserrat, system-ui, sans-serif;
  text-transform:uppercase; white-space:nowrap;
}
@media (max-width:480px){
  .ec-fractal .btn--primary-pill{
    min-width: clamp(220px, 72vw, 320px);
    height:48px; font-size:16px; border-radius:24px;
  }
}

/* Media card (reuses global .ec-screenshot style; include if not already) */
.ec-fractal__media{ display:grid; place-items:center; }

/* Optional: copy first on phones */
@media (max-width:959.98px){
  .ec-fractal__copy{ order:-1; }
}



/* Wrapper + header */
.ec-gallery{ padding-block:32px; }
.ec-gallery__wrap{ padding-inline: clamp(16px, 6vw, 128px); }
.ec-gallery__head{ display:flex; flex-direction:column; gap:16px; margin-bottom:32px; }
.ec-gallery__title{
  color: var(--text);
  font: 400 clamp(24px,3vw,32px)/1.2 Orbitron, system-ui, sans-serif;
  margin:0;
}
.ec-gallery__sub{
  color: var(--secondary-text);
  font: 400 clamp(16px,2.2vw,20px)/1.6 Inter, system-ui, sans-serif;
  margin:0;
}

/* Thumbs grid (192×192 white tiles) */
.ec-gallery__grid{
  display:grid; gap:32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 192px));
  justify-content:center;
}
.ec-thumb{
  width:192px; height:192px; display:block;
  border-radius:16px; overflow:hidden;
  background:#FFFFFF;                 /* pure white tile per Figma */
  border:1px solid #FFFFFF;           /* white outline */
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.ec-thumb img{
  width:100%; height:100%; object-fit:cover;
  /* Figma uses a 200×200 inside 192×192; the cover crop mimics that */
}
.ec-thumb:hover{
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 16px rgba(0,0,0,.28);
  transform: translateY(-2px);
}

/* CTA (same pill sizing as other sections) */
.ec-gallery__cta{ display:grid; place-items:center; margin-top:16px; }
.ec-gallery .btn--primary-pill{
  display:inline-flex; align-items:center; justify-content:center;
  height:56px; padding-inline:28px; min-width:320px;
  border-radius:28px; background: var(--primary); color: var(--text);
  font: 600 20px/1 Montserrat, system-ui, sans-serif;
  text-transform:uppercase; white-space:nowrap;
}
@media (max-width:480px){
  .ec-gallery .btn--primary-pill{
    min-width: clamp(220px, 72vw, 320px);
    height:48px; font-size:16px; border-radius:24px;
  }
}



/* layout */
.ec-how{ padding-block:32px; }
.ec-how__grid{
  display:grid;
  gap:64px;
  grid-template-columns:1fr;                /* mobile first */
  padding-inline: clamp(16px, 6vw, 128px);
  align-items:center;
}
@media (min-width:960px){
  .ec-how__grid{ grid-template-columns: .9fr 1.1fr; } /* media | copy */
}

/* media (reuses your screenshot card look) */
.ec-how__media{ display:grid; place-items:center; }
.ec-screenshot{
  margin:0; width:100%; max-width:512px;
  background: var(--black);
  border-radius:16px; overflow:hidden;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.ec-screenshot img{ display:block; width:100%; height:auto; }

/* copy */
.ec-how__copy{ display:flex; flex-direction:column; gap:32px; }
.ec-how__head{ display:flex; flex-direction:column; gap:16px; }
.ec-how__title{
  color: var(--text);
  font: 400 clamp(24px, 3vw, 32px)/1.2 Orbitron, system-ui, sans-serif;
  margin:0;
}
.ec-how__sub{
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
  margin:0;
}

/* numbered steps */
.ec-how__steps{
  margin:0; padding:0;
  list-style:none; counter-reset: step;
  display:grid; gap:8px;
  color: var(--secondary-text);
  font: 400 clamp(16px, 2.2vw, 20px)/1.6 Inter, system-ui, sans-serif;
}
.ec-how__steps li{
  position:relative; padding-left:40px;
}
.ec-how__steps li::before{
  counter-increment: step;
  content: counter(step);
  position:absolute; left:0; top:0.25rem;
  width:28px; height:28px; border-radius:50%;
  display:grid; place-items:center;
  color:#000; background: var(--accent);
  font: 700 16px/1 Inter, system-ui, sans-serif;
}

/* CTA (shorter label than other pills) */
.ec-how .btn--primary-pill{
  display:inline-flex; align-items:center; justify-content:center;
  height:56px; padding-inline:28px;
  min-width:220px;                       /* Figma shows ~200px; keep a bit wider */
  border-radius:28px;
  background: var(--primary); color: var(--text);
  font: 600 20px/1 Montserrat, system-ui, sans-serif;
  text-transform:uppercase; white-space:nowrap;
}
@media (max-width:480px){
  .ec-how .btn--primary-pill{
    min-width: clamp(200px, 70vw, 240px);
    height:48px; font-size:16px; border-radius:24px;
  }
}

/* optional: show copy before media on phones */
@media (max-width:959.98px){
  .ec-how__copy{ order:-1; }
}




/* ---- Footer ---- */
.ec-footer{
  background: var(--footer-titlebar);
  background-blend-mode: color-dodge;   /* per Figma */
  color: #FFFFFF;
  padding-block: 32px;
}
.ec-footer__wrap{
  padding-inline: clamp(16px, 6vw, 128px);
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}

/* Links row */
.ec-footer__nav{
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: center;
}
.ec-footer__nav a{
  color: #FFFFFF;
  font: 400 16px/1.4 Montserrat, system-ui, sans-serif;
  text-decoration: none;
}
.ec-footer__nav a:hover{
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* Brand block */
.ec-footer__brand{
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  
}
.ec-footer__brand img{ height:48px; width:auto; }

/* the white pill bar under the logo (127×16 in Figma) */
.ec-footer__divider{
  width: 127px; height: 16px; background: #FFFFFF; border-radius: 8px;
  opacity: .95;
}

/* small print */
.ec-footer__copy{
  margin: 0;
  color: #FFFFFF;
  text-align: center;
  font: 400 12px/1.4 Montserrat, system-ui, sans-serif;
}




/* wordmark below the logo */
.ec-footer__brandname{
  color:#fff;
  font: 700 22px/1.2 Orbitron, Montserrat, system-ui, sans-serif; /* matches headings vibe */
  letter-spacing:.2px;
  text-align:center;
}

@media (max-width:480px){
  .ec-footer__brandname{ font-size:18px; }
}


.brandrow__video{
  /* gradient frame */
  --r: 16px;        /* corner radius */
  --b: 2px;         /* border (frame) thickness */
  width: min(100%, 560px);
  border-radius: var(--r);
  padding: var(--b);
  background: linear-gradient(135deg,#8b5cf6,#ec4899 40%,#22d3ee);
  box-shadow: 0 10px 28px rgba(139,92,246,.25), inset 0 0 0 1px rgba(255,255,255,.06);

  /* the important bits */
  overflow: hidden;            /* clip child corners */
  isolation: isolate;          /* avoids Safari bleed-through */
}

/* Responsive */
@media (max-width: 1100px){
  .brandrow__video{ width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px){
  .brandrow__video{ width: 100%; }
}

/* Give phones a wider, cinematic look */
@media (max-width: 600px){
  .brandrow__player{ aspect-ratio: 16 / 9; }
}

@media (max-width: 480px){
  .brandrow__player{
    width: 100%;
    height: auto;
    max-height: 220px;          /* keep aspect reasonable on very small screens */
  }

}

@media (max-width: 400px){
  .brandrow__player{ width: 100%; height: auto; max-height: 240px; }
}

  /* ultra-narrow safety */
@media (max-width: 360px){
  .brandrow__player{ max-height: 200px; }
}

/* Video card: centered, bordered, and glowing */
.ec-how__grid > .brandrow__video { justify-self: center; }

/* Responsive <video> inside brand blocks */
.brandrow__player{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;          /* desktop feel */
  background: #000;             /* matches container */
  border-radius: 8px;
  display: block;
  border-radius: inherit;      /* match wrapper radius */
}

/* nicer hover/focus ring */
.brandrow__video:hover,
.brandrow__video:focus-within{
  box-shadow:
    0 14px 36px rgba(139, 92, 246, .35),
    0 0 0 2px rgba(255,255,255,.08) inset;
}


/* HOW IT WORKS — video card with a visible border on black */
.ec-how__grid .brandrow__video{
  position: relative;
  display: block;
  width: min(100%, 560px);
  margin-inline: auto;             /* center on its grid cell */
  border-radius: 16px;
  overflow: hidden;                 /* clip the pseudo-border and the video */
  background: #0b0b10;             /* subtle face behind controls */
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* Gradient border that’s ALWAYS visible */
.ec-how__grid .brandrow__video::before{
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;                     /* border thickness */
  border-radius: inherit;
  background: linear-gradient(135deg, #8b5cf6, #ec4899 40%, #22d3ee);
  /* Punch a “hole” so only the ring shows */
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* The actual <video> */
.ec-how__grid .brandrow__player{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;             /* looks better for players */
  border-radius: calc(16px - 2px);  /* keep corners inside the ring */
  background: #000;                 /* strong contrast with controls */
}

/* Fallback outline (in case masks aren’t supported) */
@supports not ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .ec-how__grid .brandrow__video{
    outline: 2px solid rgba(255,255,255,.18);
    outline-offset: 0;
  }
}


.vp-main{ display: grid; gap: 24px; padding: 24px 0 48px; }

/* ===== Contact page (single source of truth) ===== */
.contact{
  background: #0b0f10;
  border: 1px solid rgba(0,255,255,.35);
  border-radius: 12px;
  padding: 32px;
  max-width: 900px;     /* wider on desktop */
  width: 100%;
  margin: 0 auto;
}
.contact__title{
  text-align: center;
  margin: 8px 0 24px;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: .2px;
}
.contact__form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.contact__label{ color: #d9d9d9; font-size: 14px; }
.contact__input,
.contact__textarea{
  width: 100%;
  border: 2px solid rgba(0,255,255,.35);
  background: #1f1f1f;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-size: 16px;
}
.contact__input:focus,
.contact__textarea:focus{
  border-color: var(--accent, #00FFFF);
  box-shadow: 0 0 0 3px rgba(0,255,255,.15);
}
.contact__btn{
  margin-top: 6px;
  background: #9be3ea;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-weight: 700;
  cursor: pointer;
}
.contact__btn:hover{ filter: brightness(1.05); }
.contact__note{ min-height: 20px; font-size: 14px; margin-top: 6px; color: #9be3ea; }
.contact__note[data-status="error"]{ color: #ffb4b4; }

/* Desktop: two-column layout (name/email side by side) */
/* Desktop: two-column layout (name/email side by side) */
@media (min-width: 960px){
  .contact__form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 12px;
    grid-template-areas:
      "name-label    email-label"
      "name          email"
      "subject-label subject-label"
      "subject       subject"
      "message-label message-label"
      "message       message"
      ".             button";
  }

  /* map labels to areas */
  .contact__label[for="name"]    { grid-area: name-label; }
  .contact__label[for="email"]   { grid-area: email-label; }
  .contact__label[for="subject"] { grid-area: subject-label; }
  .contact__label[for="message"] { grid-area: message-label; }

  /* map inputs/textarea to areas (you already had these) */
  #name    { grid-area: name; }
  #email   { grid-area: email; }
  #subject { grid-area: subject; }
  #message { grid-area: message; }

  .contact__btn { grid-area: button; justify-self: end; width: 220px; }
}

.contact__note[hidden]{ display:none; }
.contact__note{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.contact__note[data-status="ok"]{
  background: #063; color: #d4ffe3; border: 1px solid #1aa36b;
}
.contact__note[data-status="error"]{
  background: #3a0a0a; color: #ffd7d7; border: 1px solid #cc5b5b;
}


/* Mobile tightening */
@media (max-width: 600px){
  .contact{ padding: 16px; border-radius: 8px; }
  .contact__btn{ padding: 14px; }
}

/* === Footer socials row === */
.ec-footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 12px;
  padding: 0 8px;
}

@media (min-width: 768px) {
  .ec-footer__socials {
    gap: 14px;
    margin: 20px auto 14px;
  }
}

.ec-footer__socials .ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(2px);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .ec-footer__socials .ico { width: 44px; height: 44px; }
}

.ec-footer__socials .ico:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.ec-footer__socials .ico img {
  display: block;
  width: 22px;
  height: 22px;
}

@media (min-width: 768px) {
  .ec-footer__socials .ico img { width: 24px; height: 24px; }
}

/* Telegram variants */
.ec-footer__socials .ico--tg { background: rgba(0,136,204,0.12); }
.ec-footer__socials .ico--tg:hover { background: rgba(0,136,204,0.2); }

/* Badge for C/G */
.ec-footer__socials .ico__badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  font: 700 10px/1 Verdana, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  background: #0aa0ff;              /* channel badge */
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
}

.ec-footer__socials .ico--group .ico__badge { background: #7a59ff; } /* group badge */

/* Keep socials in ONE row on desktop */
@media (min-width: 1024px) {
  .ec-footer__socials {
    flex-wrap: nowrap;        /* don't wrap */
    justify-content: center;  /* center the row */
    gap: 14px;                /* tidy spacing */
    max-width: none;          /* avoid container-imposed breaks */
    overflow-x: visible;      /* no scroll on wide screens */
  }
  .ec-footer__socials .ico {
    flex: 0 0 auto;           /* prevent flex from shrinking and causing wrap */
  }
}

/* Optional: if your layout is very tight, allow graceful horizontal scroll on slightly smaller widths */
@media (min-width: 768px) and (max-width: 1023px) {
  .ec-footer__socials {
    flex-wrap: nowrap;
    overflow-x: auto;         /* single row with scroll if needed */
    scrollbar-width: none;    /* Firefox */
  }
  .ec-footer__socials::-webkit-scrollbar { display: none; } /* WebKit */
}

.ec-footer__wrap { min-width: 0; }
.ec-footer__socials { min-width: 0; }
