/* ==========================================================
   EpicWorks — Premium Editorial System
   - Light / neutral background
   - Strong typography hierarchy
   - Spacious layout
   - No terminal, no neon, no SaaS gradients
   ========================================================== */

/* -----------------------
   Design Tokens
   ----------------------- */
:root{
  /* Backgrounds */
  --bg: #fbfbfa;           /* warm off-white */
  --bg-elev: #ffffff;      /* pure white for cards */
  --bg-muted: #f2f2f0;     /* subtle section contrast */

  /* Text */
  --text: #141414;         /* near-black, calm */
  --text-muted: #4b4b4b;   /* neutral gray */
  --text-soft: #6a6a6a;    /* secondary */

  /* Lines */
  --line: rgba(20, 20, 20, 0.10);
  --line-strong: rgba(20, 20, 20, 0.14);

  /* Accent (restrained, not neon) */
  --accent: #1f3a5f;       /* deep steel-blue */
  --accent-2: #0f766e;     /* muted teal (small usage) */

  /* Radii */
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;

  /* Shadows (soft, premium) */
  --shadow-sm: 0 1px 0 rgba(20,20,20,0.04), 0 10px 30px rgba(20,20,20,0.05);
  --shadow-md: 0 2px 0 rgba(20,20,20,0.05), 0 18px 50px rgba(20,20,20,0.07);

  /* Layout */
  --container: 1120px;

  /* Spacing */
  --s-1: 6px;
  --s-2: 10px;
  --s-3: 14px;
  --s-4: 18px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 44px;
  --s-8: 64px;
  --s-9: 92px;

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New";

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 180ms;
}

/* -----------------------
   Base
   ----------------------- */
*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

img{ max-width: 100%; display: block; }

a{
  color: inherit;
  text-decoration: none;
}

.container{
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Selection: subtle, not neon */
::selection{
  background: rgba(31, 58, 95, 0.14);
}

/* -----------------------
   Topbar
   ----------------------- */
.topbar{
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
}

.topbar__inner{
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: 10px 0;
}

.topbar__pill{
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
}

.topbar__text{
  font-size: 13px;
  color: var(--text-muted);
}

/* -----------------------
   Header / Nav
   ----------------------- */
.header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251,251,250,0.80);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: var(--s-4);
}

.brand{
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.brand__logo{
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand__name{
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav{
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav__link{
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav__link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0%;
  height: 1px;
  background: var(--text);
  transition: width var(--dur) var(--ease);
  opacity: 0.6;
}

.nav__link:hover{
  color: var(--text);
}

.nav__link:hover::after{
  width: 100%;
}

.nav__cta{
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  box-shadow: 0 1px 0 rgba(20,20,20,0.04);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav__cta:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav__cta--mobile{
  display: none;
}

/* -----------------------
   Buttons
   ----------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  cursor: pointer;
  user-select: none;
}

.btn--primary{
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn--secondary:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.6);
}

.btn--full{
  width: 100%;
}

/* -----------------------
   Section Headings
   ----------------------- */
.section-head{
  display: grid;
  gap: 10px;
  margin-bottom: var(--s-7);
}

.section-title{
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-sub{
  margin: 0;
  color: var(--text-muted);
  max-width: 62ch;
}

/* -----------------------
   Hero
   ----------------------- */
.hero{
  padding: var(--s-9) 0 var(--s-8);
}

.hero__grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--s-8);
}

.eyebrow{
  margin: 0 0 var(--s-4);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero__title{
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero__title-accent{
  display: inline-block;
  color: var(--accent);
}

.hero__sub{
  margin: var(--s-5) 0 0;
  color: var(--text-muted);
  font-size: 16px;
  max-width: 58ch;
}

.hero__actions{
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}

.hero__trust{
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-6);
  flex-wrap: wrap;
}

.trust-item{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}

.trust-item__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  opacity: 0.85;
}

/* Hero visual stack */
.hero__visual{
  position: relative;
  min-height: 420px;
}

.hero__frame{
  position: absolute;
  inset: 12% 6% 10% 8%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: radial-gradient(1000px 600px at 20% 10%, rgba(31,58,95,0.08), transparent 60%),
              radial-gradient(900px 550px at 80% 70%, rgba(15,118,110,0.08), transparent 60%);
  /* This is NOT a “generic SaaS gradient”:
     It's a restrained, near-invisible tint inside a framed surface. */
  pointer-events: none;
}

.stack{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.stack__card{
  width: min(420px, 100%);
  height: 300px;
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform-origin: center;
}

.stack__card--top{
  position: relative;
  transform: translateY(-6px) rotate(-1deg);
}

.stack__card--mid{
  position: absolute;
  transform: translateY(18px) rotate(2deg);
  opacity: 0.55;
}

.stack__card--back{
  position: absolute;
  transform: translateY(40px) rotate(-2deg);
  opacity: 0.35;
}

.stack__header{
  display: flex;
  justify-content: space-between;
  padding: 18px 18px 0;
  color: var(--text-soft);
  font-size: 13px;
}

.stack__label{
  color: var(--text);
  font-weight: 600;
}

.stack__body{
  padding: 18px;
  display: grid;
  gap: 14px;
}

.metric{
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(250,250,250,0.8);
}

.metric__k{
  color: var(--text-soft);
  font-size: 13px;
}

.metric__v{
  font-weight: 600;
  letter-spacing: -0.02em;
}

.divider{
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

.pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill{
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  color: var(--text-muted);
}

/* -----------------------
   Generic Grids & Cards
   ----------------------- */
.grid{
  display: grid;
  gap: var(--s-5);
}

.grid--3{
  grid-template-columns: repeat(3, 1fr);
}

.grid--2{
  grid-template-columns: repeat(2, 1fr);
}

.card, .case, .spec-card{
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: 0 1px 0 rgba(20,20,20,0.03);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover, .case:hover, .spec-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.card__title, .case__title, .spec-card__title{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.card__text, .case__text, .spec-card__text{
  margin: 0;
  color: var(--text-muted);
}

/* -----------------------
   Sections
   ----------------------- */
.proof{
  padding: var(--s-8) 0;
}

.kits{
  padding: var(--s-8) 0;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.55));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how{
  padding: var(--s-8) 0;
}

.usecases{
  padding: var(--s-8) 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specs{
  padding: var(--s-8) 0;
}

.faq{
  padding: var(--s-8) 0;
  background: var(--bg-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact{
  padding: var(--s-8) 0 var(--s-9);
}

/* -----------------------
   Product Cards
   ----------------------- */
.product{
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  box-shadow: 0 1px 0 rgba(20,20,20,0.03);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: grid;
  gap: var(--s-4);
}

.product:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product__top{
  display: grid;
  gap: 6px;
}

.product__name{
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.product__tag{
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.product__desc{
  margin: 0;
  color: var(--text-muted);
}

.product__badge{
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,58,95,0.18);
  background: rgba(31,58,95,0.08);
  color: var(--accent);
}

.product--featured{
  border-color: rgba(31,58,95,0.22);
  box-shadow: 0 2px 0 rgba(31,58,95,0.08), 0 18px 50px rgba(20,20,20,0.07);
}

.product__cta{
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.hint{
  font-size: 12px;
  color: var(--text-soft);
}

/* -----------------------
   Lists
   ----------------------- */
.list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.list li{
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
}

.list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15,118,110,0.85);
}

.list--tight{
  gap: 8px;
}

.note{
  margin-top: var(--s-7);
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.55);
  color: var(--text-muted);
}

/* -----------------------
   Steps
   ----------------------- */
.steps{
  display: grid;
  gap: var(--s-4);
}

.step{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: 0 1px 0 rgba(20,20,20,0.03);
}

.step__num{
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(31,58,95,0.06);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step__title{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.step__text{
  margin: 8px 0 0;
  color: var(--text-muted);
}

.split{
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}

.panel{
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--line);
}

.panel__title{
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

/* -----------------------
   Spec Strip
   ----------------------- */
.strip{
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
}

.strip__item{
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(250,250,250,0.8);
}

.strip__k{
  display: block;
  font-size: 12px;
  color: var(--text-soft);
}

.strip__v{
  display: block;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* -----------------------
   FAQ
   ----------------------- */
.faq__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.qa{
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: var(--s-5);
  box-shadow: 0 1px 0 rgba(20,20,20,0.03);
}

.qa__q{
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.qa__q::-webkit-details-marker{ display: none; }

.qa__a{
  margin: 10px 0 0;
  color: var(--text-muted);
}

/* -----------------------
   CTA / Form
   ----------------------- */
.cta{
  border-radius: calc(var(--r-lg) + 6px);
  border: 1px solid var(--line);
  background: radial-gradient(900px 600px at 15% 20%, rgba(31,58,95,0.08), transparent 60%),
              radial-gradient(900px 600px at 85% 70%, rgba(15,118,110,0.07), transparent 60%),
              var(--bg-elev);
  box-shadow: var(--shadow-md);
  padding: var(--s-8);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s-7);
  align-items: start;
}

.cta__title{
  margin: 0;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.cta__text{
  margin: var(--s-4) 0 0;
  color: var(--text-muted);
  max-width: 48ch;
}

.form{
  display: grid;
  gap: var(--s-4);
}

.form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.field{
  display: grid;
  gap: 8px;
}

.field__label{
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field__input{
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.field__input:focus{
  border-color: rgba(31,58,95,0.35);
  box-shadow: 0 0 0 6px rgba(31,58,95,0.08);
}

.field__input--area{
  resize: vertical;
  min-height: 110px;
}

.form__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-2);
}

.fineprint{
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

/* -----------------------
   Footer
   ----------------------- */
.footer{
  padding: var(--s-8) 0 var(--s-6);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.45);
}

.footer__inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-6);
}

.brand--footer .brand__logo{
  width: 24px;
  height: 24px;
}

.footer__note{
  margin: var(--s-3) 0 0;
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 14px;
}

.footer__right{
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__link{
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
}

.footer__link:hover{
  color: var(--text);
}

.footer__bottom{
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 13px;
}

.footer__sep{
  opacity: 0.6;
}

/* -----------------------
   Responsive
   ----------------------- */
@media (max-width: 980px){
  .hero__grid{
    grid-template-columns: 1fr;
  }
  .hero__visual{
    min-height: 360px;
  }
  .grid--3{
    grid-template-columns: 1fr;
  }
  .grid--2{
    grid-template-columns: 1fr;
  }
  .split{
    grid-template-columns: 1fr;
  }
  .strip{
    grid-template-columns: 1fr 1fr;
  }
  .faq__grid{
    grid-template-columns: 1fr;
  }
  .cta{
    grid-template-columns: 1fr;
    padding: var(--s-7);
  }
}

@media (max-width: 720px){
  .nav{ display: none; }
  .nav__cta--mobile{ display: inline-flex; }
  .topbar__text{ display: none; }

  .hero{
    padding: var(--s-8) 0 var(--s-7);
  }

  .form__row{
    grid-template-columns: 1fr;
  }

  .header__inner{
    padding: 12px 0;
  }
}
