/* =========================================================
   EIGASCRIPT — COMPLETE THEME STYLESHEET
   Unified, streamlined, and type-harmonized
   ========================================================= */

/* ---------- 1. ROOT VARIABLES ---------- */
:root {
  /* Theme palette */
  --bg: #070b10;
  --panel: #0f1621;
  --glass: rgba(16, 26, 38, .6);
  --ink: #dce6ff;
  --muted: #9fb3d9;
  --neon: #53c2ff;
  --edge-glow: #12a6ff;
  --stroke: rgba(83,194,255,.25);
  --accent: #7ee1ff;
  --shadow: 0 10px 30px rgba(18,166,255,.15),
             0 2px 8px rgba(0,0,0,.35);
  --radius: 18px;

  /* Text colors */
  --text-color: #dce6ff;
  --heading-color: #ffffff;
  --link-color: #7ee1ff;
}

/* ---------- 2. GLOBAL RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* ---------- 3. GLOBAL TYPOGRAPHY ---------- */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial,
               Apple Color Emoji, Segoe UI Emoji;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-color);
  background: var(--bg);
  letter-spacing: .2px;
}

h1, h2, h3, h4, h5 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: saturate(130%) blur(6px);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--neon); }
.btn.primary {
  background: linear-gradient(90deg, #5fb3ff, #9966ff);
  color: #001018;
  border: none;
}
.btn.ghost {
  background: rgba(255,255,255,.03);
  border: 1px solid hsl(0 0% 100% / .25);
  color: #fff;
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost:hover   { background: hsl(0 0% 100% / .08); }

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5,10,16,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(83,194,255,.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.menu a {
  color: var(--ink);
  padding: .4rem .6rem;
  border-radius: 8px;
}
.menu a:hover { background: rgba(255,255,255,.04); }

/* ---------- 6. HERO SECTION ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding: clamp(3rem, 6vw, 6rem) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap: clamp(24px,4vw,48px);
  align-items: stretch;
}
.hero-copy { max-width: 56ch; }
.hero-copy h1 {
  font-size: clamp(36px,5vw,56px);
  line-height: 1.04;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 0 24px rgba(83,194,255,.25);
}
.hero-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 18px;
  max-width: 54ch;
}
.cta-row { display: flex; gap: 12px; margin: 10px 0 16px; }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  list-style: none;
}
.badges li {
  font-size: .92rem;
  color: var(--muted);
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / .15);
  background: hsl(0 0% 100% / .06);
  backdrop-filter: blur(4px);
}

/* Hero image block */
.hero-art {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -8% -10%;
  background:
    radial-gradient(60% 60% at 70% 35%, rgba(153,102,255,.28), transparent 60%),
    radial-gradient(40% 40% at 25% 80%, rgba(95,179,255,.22), transparent 60%);
  filter: blur(38px);
  z-index: 0;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 70% 20%, rgba(95,179,255,.18), transparent 55%),
    linear-gradient(180deg, rgba(153,102,255,.12), rgba(95,179,255,.16) 60%, transparent);
  mix-blend-mode: color;
  border-radius: 16px;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: right center;
}

/* ---------- 7. SECTIONS & PANELS ---------- */
.stripe { background: none; padding: 56px 0; }
.panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(12,18,28,.55);
  box-shadow: var(--shadow);
}
.panel h2 {
  margin-top: 0;
  font-size: 1.9rem;
}

/* ---------- 8. WHAT IS EIGASCRIPT ---------- */
#what {
  padding: 56px 0;
  color: var(--text-color);
}
#what h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: clamp(1.6rem,1.2rem + 1.6vw,2.2rem);
}
#what .two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: clamp(.6rem, 1.8vw, 1.1rem);
}
#what .copy {
  text-align: left;
  display: flex;
  flex-direction: column;
}
#what .shot-wrap {
  position: relative;
  height: 100%;
  display: flex;
}
#what .screenshot {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.85)18%, #000 38%, #000 100%);
          mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.85)18%, #000 38%, #000 100%);
}
#what .bullets { margin-top: .6rem; padding-left: 1.1rem; }
#what .bullets li { margin: .35rem 0; line-height: 1.5; }
#what .cta { margin-top: 1rem; font-style: italic; opacity: .9; }

@media (max-width:900px){
  #what .two-col { grid-template-columns:1fr; }
  #what .screenshot { height:auto; object-fit:contain; }
}

/* =========================================================
   SHARED PANEL + SECTION TYPOGRAPHY
   Matches "What" section style across all informational blocks
   ========================================================= */

/* Base panel look (reuses the existing .panel base but unifies spacing) */
.panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  background: rgba(12,18,28,.55);
  box-shadow: var(--shadow);
  color: var(--text-color);
  font-size: clamp(1.02rem, 0.9rem + 0.6vw, 1.25rem);
  line-height: 1.55;
}

/* Titles (h2/h3) consistent with #what style */
.panel h2, .panel h3 {
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: .75rem;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
}

/* Lists */
.panel ul {
  list-style: disc;
  padding-left: 1.3rem;
  margin-top: .5rem;
  margin-bottom: .5rem;
}
.panel li {
  margin-bottom: .45rem;
  line-height: 1.55;
  color: var(--text-color);
}

/* Inline code snippets */
.panel code {
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: Consolas, monospace;
  color: var(--accent);
  font-size: .9em;
}

/* Paragraphs */
.panel p {
  margin-bottom: .75rem;
  max-width: 66ch;
}

/* Section containers (stripe) */
.stripe {
  background: none;
  padding: clamp(48px, 8vw, 80px) 0;
}

/* Centered section headings */
.stripe > .container > h2 {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  color: var(--heading-color);
}

/* Match all secondary panels to the same tone */
#how, #about, #contact {
  color: var(--text-color);
}

/* Buttons inside panels inherit glow and spacing */
.panel .btn {
  margin-top: .8rem;
}

/* Adjust link color in all panels for consistency */
.panel a {
  color: var(--link-color);
}
.panel a:hover {
  text-decoration: underline;
}

/* Responsive touch-ups */
@media (max-width: 600px) {
  .panel {
    font-size: 1.06rem;
    padding: 18px;
  }
  .panel h2, .panel h3 {
    font-size: 1.35rem;
  }
}

/* =========================================================
   DEMO GRID — Two-column video + description
   ========================================================= */

   .yt-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;   /* creates real height */
  background: #0b0f14;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.yt-wrap iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; border-radius: 14px;
}
.video-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

/* each pair behaves like a 2-column mini grid */
.video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.video-row .yt-wrap {
  aspect-ratio: 16 / 9;
  background: #0b0f14;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-row iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.video-text h3 {
  margin-bottom: .4rem;
  font-size: clamp(1.1rem, 0.9rem + 0.6vw, 1.3rem);
  color: var(--heading-color);
}

.video-text p {
  margin-bottom: .9rem;
  line-height: 1.55;
  color: var(--text-color);
}

/* Responsive stack: video on top, text below */
@media (max-width: 900px) {
  .video-row {
    grid-template-columns: 1fr;
  }
  .video-text {
    text-align: center;
  }
  .video-text .btn {
    align-self: center;
  }
}


/* ---------- 9. GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.tile {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  text-align: center;
}
.tile img { width: 100%; display: block; }
.tile figcaption {
  padding: 10px;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- 10. CONTACT ---------- */
.contact {
  padding: 68px 0;
}
.contact-box {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(12,18,28,.55);
  box-shadow: var(--shadow);
}
.contact .row { display: flex; gap: 10px; flex-wrap: wrap; }
#contact-status { margin-top: 10px; color: var(--muted); }
.fineprint { margin-top: 12px; color: var(--muted); font-size: .9rem; }

/* ---------- 11. FOOTER ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(83,194,255,.12);
  background: rgba(5,10,16,.7);
  backdrop-filter: blur(10px);
}
.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
.brand-foot { display: flex; gap: .5rem; align-items: center; color: var(--muted); }
.foot-links { display: flex; gap: 1rem; justify-content: center; }
.foot-links a { color: var(--muted); }
.copy { text-align: right; color: var(--muted); }

/* ---------- 12. RESPONSIVE ---------- */
@media (max-width:980px){
  .hero-grid { grid-template-columns:1fr; }
  .hero-art { order: -1; margin-bottom: 1.25rem; }
  .hero-copy, .cta-row, .badges {
    text-align: center;
    justify-content: center;
  }
  .gallery { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .copy { text-align: center; }
  .foot-links { justify-content: center; margin: 8px 0; }
}
/* Big headline + neon pulse */
.punch{
  margin-top:.75rem;
  font-size: clamp(1.2rem, 0.9rem + 1.1vw, 1.8rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing:.2px;
  text-align:center;
  color: var(--heading-color);
  text-shadow:
    0 0 8px  rgba(83,194,255,.28),
    0 0 18px rgba(18,166,255,.18),
    0 0 36px rgba(153,102,255,.14);
  animation: punchPulse 2.4s ease-in-out infinite;
  position: relative;
}

/* Optional: gradient “highlight” for the key phrase */
.punch .multi{
  background: linear-gradient(90deg, var(--accent), #9966ff);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow:
    0 0 10px rgba(83,194,255,.45),
    0 0 24px rgba(153,102,255,.25);
}

/* Subtle glowing underline */
.punch::after{
  content:"";
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:-6px; width: clamp(160px, 40%, 520px); height: 8px;
  border-radius: 999px;
  background: radial-gradient(60% 120% at 50% 50%,
              rgba(83,194,255,.55), rgba(83,194,255,.0) 70%);
  filter: blur(6px);
  animation: punchUnderline 2.4s ease-in-out infinite;
}

/* Animations */
@keyframes punchPulse{
  0%, 100% { text-shadow:
      0 0 6px  rgba(83,194,255,.24),
      0 0 14px rgba(18,166,255,.16),
      0 0 28px rgba(153,102,255,.12);
    filter: brightness(1); }
  50% { text-shadow:
      0 0 12px rgba(83,194,255,.45),
      0 0 28px rgba(18,166,255,.28),
      0 0 52px rgba(153,102,255,.2);
    filter: brightness(1.06); }
}

@keyframes punchUnderline{
  0%,100% { opacity:.65; transform:translateX(-50%) scaleX(1); }
  50%     { opacity:1;    transform:translateX(-50%) scaleX(1.08); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .punch, .punch::after{ animation: none; }
}

/* Two-column audience block */
.two-col-w-img{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
}

.audience-copy{
  display:flex; flex-direction:column;
}

.audience-list{
  list-style: disc; padding-left:1.3rem; margin: .5rem 0 1rem;
}

.audience-art{
  position:relative; margin:0; display:flex; height:100%;
}
.audience-art img{
  width:100%; height:100%;
  object-fit: cover;               /* fill the column */
  object-position: center;         /* adjust if you want left focus */
  border-radius: 14px;
  box-shadow: var(--shadow);
  /* subtle inward fade so text and image blend */
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.85)18%, #000 38%, #000 100%);
          mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.85)18%, #000 38%, #000 100%);
}
/* logo mode: adds 10% side gutters and uses contain (no crop) */
.logo_art { padding-inline:5%; }             /* ← 5% on each side */
.logo_art img{
  width:100%; height:auto; display:block;     /* keep aspect ratio */
  object-fit: contain;                         /* logos shouldn’t be cropped */
  object-position: center;
  border-radius:14px;
  box-shadow: var(--shadow);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.85) 18%, #000 38%, #000 100%);
          mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,.85) 18%, #000 38%, #000 100%);
}
@media (max-width: 980px){
  .two-col-w-img{ grid-template-columns:1fr; }
  .audience-art img{
    height:auto; object-fit: contain; 
    -webkit-mask-image:none; mask-image:none;
  }
  .audience-copy, .audience-list { text-align:left; }
}

.section--narrow{
  max-width: 720px; /* same as your Contact section */
  margin: 40px auto;
  padding: 24px;
  background:#121a2b; /* match your theme */
  border:1px solid #243354;
  border-radius:14px;
  box-shadow:0 12px 40px rgba(0,0,0,.35);
}
.section--narrow h2{ margin-top:0; color:#fff; }
.section--narrow .muted{ color:#9bb0d6; margin:.25rem 0 1rem; }
.subscribe-embed{ margin-top:.5rem; }
