/* Reset & Base Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1c1d1f; background-color: #f4f6f9; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Header & Navigation */
header { background: #ffffff; border-bottom: 1px solid #e0e4ec; position: sticky; top: 0; z-index: 1000; }
.navbar { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; }
.logo { font-size: 1.5rem; font-weight: 700; color: #0a66c2; letter-spacing: -0.5px; }
.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-menu a { font-weight: 500; color: #2d3748; transition: color 0.2s; }
.nav-menu a:hover { color: #0a66c2; }

/* Dropdown Styles for Products */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #ffffff; min-width: 200px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 6px; padding: 0.5rem 0; list-style: none; z-index: 1001; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a { padding: 0.5rem 1rem; display: block; color: #2d3748; }
.dropdown-menu li a:hover { background-color: #f8fafc; color: #0a66c2; }

/* Showcase — full-bleed rotating hero */
.showcase-section { background: #0b132b; color: #ffffff; padding: 3.5rem 0 2.5rem 0; }
.showcase-header { max-width: 800px; margin: 0 auto 2.5rem auto; text-align: center; padding: 0 1.5rem; }
.showcase-header h2 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.75rem; color: #ffffff; }
.showcase-header p { font-size: 1.1rem; color: #a0aec0; }

.slider { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }

/* The stage. Slides are stacked and cross-faded, so the height is set once here
   rather than by whichever slide happens to be tallest. */
.viewport { position: relative; height: 560px; border-radius: 16px; overflow: hidden; background: #101a33; }

.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 600ms ease; }
.slide.is-active { opacity: 1; visibility: visible; }

/* The artwork, plus a gradient that keeps the text legible over any photograph.
   A missing image still leaves a presentable panel rather than a broken one. */
.slide-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.slide-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,12,28,0.94) 0%, rgba(6,12,28,0.80) 42%, rgba(6,12,28,0.25) 75%, rgba(6,12,28,0.10) 100%); }
.slide-media--speakly   { background-image: url("images/Text-To-Speech.png"), linear-gradient(135deg, #1c2541, #0b132b); }
.slide-media--vidly     { background-image: url("images/Vidly.png"),   linear-gradient(135deg, #12213f, #0b132b); }
.slide-media--docly { background-image: url("images/Docly.png"),     linear-gradient(135deg, #0d2b33, #0b132b); }
.slide-media--schoolly { background-image: url("images/Schoolly.png"),     linear-gradient(135deg, #12271b, #0b132b); }
.slide-media--testly { background-image: url("images/Testly.png"),     linear-gradient(135deg, #2b1a3f, #0b132b); }

.slide-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center;
  max-width: 620px; padding: 3rem 3.5rem; }
.slide-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #4cc9f0; margin-bottom: 1rem; }
.slide-content h3 { font-size: 2.4rem; line-height: 1.2; font-weight: 700; color: #ffffff; margin-bottom: 1rem; }
.slide-content p { font-size: 1.05rem; color: #cbd5e1; margin-bottom: 2rem; }

.cta-button { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  background: #3a86ff; color: #ffffff; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 6px; transition: background 0.2s ease, transform 0.2s ease; }
.cta-button:hover { background: #2b6fd8; transform: translateY(-1px); }

/* Controls */
.slider-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.progress { display: flex; gap: 0.75rem; flex: 1; list-style: none; }
.progress-item { position: relative; flex: 1; background: none; border: 0; padding: 0.9rem 0 0 0; cursor: pointer;
  text-align: left; color: #94a3b8; font-size: 0.9rem; font-weight: 600; font-family: inherit; }
.progress-item:hover { color: #e2e8f0; }
.progress-item.is-active { color: #ffffff; }
.progress-frame { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: #2e3856; border-radius: 2px; }
/* Width is driven from script so the bar tracks the same clock as the rotation. */
.progress-fill { position: absolute; top: 0; left: 0; height: 3px; width: 0; background: #4cc9f0; border-radius: 2px; }

.slider-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid #2e3856; border-radius: 50%; color: #cbd5e1; cursor: pointer; transition: all 0.2s ease; }
.slider-button:hover { border-color: #3a86ff; color: #ffffff; }
.slider-button svg { width: 12px; height: 12px; fill: currentColor; }
.slider-button--toggle svg { width: 16px; height: 16px; }

:focus-visible { outline: 2px solid #4cc9f0; outline-offset: 3px; }

@media (max-width: 860px) {
  .viewport { height: auto; min-height: 520px; }
  .slide-content { max-width: none; padding: 2.25rem 1.75rem; }
  .slide-content h3 { font-size: 1.8rem; }
  .slide-media::after { background: linear-gradient(180deg, rgba(6,12,28,0.72) 0%, rgba(6,12,28,0.92) 60%); }
  .progress-item { font-size: 0; padding-top: 0.75rem; }
}

/* A rotating banner is motion the visitor did not ask for. */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .cta-button:hover { transform: none; }
}

/* Multi-Column Footer */
footer { background: #ffffff; border-top: 1px solid #e0e4ec; padding: 4rem 2rem 2rem 2rem; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul li a { color: #64748b; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #0a66c2; }

.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; border-top: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: #94a3b8; font-size: 0.85rem; }

/* ─── Product pages ─────────────────────────────────────────────────────── */

.product-hero { position: relative; background: #0b132b; color: #ffffff; overflow: hidden; }
.product-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.product-hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,12,28,0.95) 0%, rgba(6,12,28,0.82) 45%, rgba(6,12,28,0.30) 100%); }
.product-hero__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.product-hero__eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #4cc9f0; margin-bottom: 1rem; }
.product-hero h1 { font-size: 3rem; line-height: 1.15; font-weight: 700; margin-bottom: 1rem; }
.product-hero__lede { font-size: 1.2rem; color: #cbd5e1; max-width: 620px; margin-bottom: 2rem; }
.product-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.cta-button-ghost { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid #47506e;
  color: #e2e8f0; font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.6rem; border-radius: 6px; transition: all 0.2s ease; }
.cta-button-ghost:hover { border-color: #4cc9f0; color: #ffffff; }

.section { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.section__title { font-size: 1.9rem; font-weight: 700; margin-bottom: 0.5rem; color: #1e293b; }
.section__lede { color: #64748b; margin-bottom: 2.5rem; max-width: 680px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature { background: #ffffff; border: 1px solid #e0e4ec; border-radius: 12px; padding: 1.75rem; }
.feature h3 { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 0.6rem; }
.feature p { font-size: 0.95rem; color: #64748b; }

.section--muted { background: #ffffff; border-top: 1px solid #e0e4ec; border-bottom: 1px solid #e0e4ec; max-width: none; }
.section--muted > * { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* The demo. A 16:9 box that holds its shape whether or not a video is in it yet. */
.video-frame { position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9;
  background: #0b132b; border: 1px solid #e0e4ec; border-radius: 12px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.5rem; color: #94a3b8; text-align: center; padding: 2rem; }
.video-placeholder strong { color: #e2e8f0; font-size: 1.05rem; }

.spec-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem 2rem; }
.spec-list li { color: #475569; font-size: 0.95rem; padding-left: 1.5rem; position: relative; }
.spec-list li::before { content: "→"; position: absolute; left: 0; color: #3a86ff; font-weight: 700; }

@media (max-width: 860px) {
  .product-hero__inner { padding: 3.5rem 1.5rem; }
  .product-hero h1 { font-size: 2.1rem; }
  .product-hero__media::after { background: linear-gradient(180deg, rgba(6,12,28,0.78) 0%, rgba(6,12,28,0.94) 60%); }
  .section { padding: 3rem 1.5rem; }
}

/* Sign in, in the product-page header. Filled rather than plain text, because it is the
   one action on the page that is not simply more reading. */
.nav-cta { display: inline-flex; align-items: center; background: #0a66c2; color: #ffffff;
  font-weight: 600; font-size: 0.9rem; padding: 0.55rem 1.15rem; border-radius: 6px; transition: background 0.2s ease; }
.nav-menu a.nav-cta { color: #ffffff; }
.nav-cta:hover, .nav-menu a.nav-cta:hover { background: #08529c; color: #ffffff; }
