/* =============================================
   ELLIJAY LABS — style.css
   Palette:
     --bg:        #0e0f11  (near-black)
     --surface:   #16181c  (card/nav bg)
     --border:    #2a2d35  (subtle divider)
     --text:      #e8eaf0  (primary text)
     --muted:     #7a7f91  (secondary text)
     --accent:    #5b9cf6  (blue — tools, precision)
     --accent2:   #a78bfa  (violet — brand warmth)
     --green:     #4ade80  (free tier badge)
   Typography:
     Display: "Space Grotesk" — geometric, technical, approachable
     Body:    "Inter" — neutral workhorse
   Signature: The lab-bench rule — a single horizontal
     gradient line (accent → accent2) used sparingly
     as a section opener, not a decoration.
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500&display=swap');

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

:root {
  --bg:       #0e0f11;
  --surface:  #16181c;
  --border:   #2a2d35;
  --text:     #e8eaf0;
  --muted:    #7a7f91;
  --accent:   #5b9cf6;
  --accent2:  #a78bfa;
  --green:    #4ade80;
  --radius:   10px;
  --max-w:    1080px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p  { color: var(--muted); max-width: 60ch; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── SIGNATURE: gradient rule ── */
.lab-rule {
  display: block;
  height: 2px;
  width: 64px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,15,17,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  /* Invert the dark-blue SVG to render white on dark background */
  filter: brightness(0) invert(1);
  display: block;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); text-decoration: none; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--border); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
  text-decoration: none;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost   { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--accent); }

/* ── BADGE ── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-blue   { background: rgba(91,156,246,0.12); color: var(--accent); }
.badge-violet { background: rgba(167,139,250,0.12); color: var(--accent2); }
.badge-green  { background: rgba(74,222,128,0.12);  color: var(--green); }
.badge-muted  { background: rgba(122,127,145,0.12); color: var(--muted); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
footer p { font-size: 0.85rem; color: var(--muted); max-width: none; }

/* ── GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* ── HERO ── */
.hero {
  padding: 7rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 1rem;
  display: block;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p  { font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-header .hero-eyebrow { margin-bottom: 0.5rem; }
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p  { font-size: 1.05rem; }

/* ── CONTACT FORM ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text); font-family: 'Space Grotesk', sans-serif; }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

/* ── APP DETAIL ── */
.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.app-icon-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 1rem;
  display: block;
}
.app-icon-blue   { background: rgba(91,156,246,0.12); }
.app-icon-violet { background: rgba(167,139,250,0.12); }
.app-icon-green  { background: rgba(74,222,128,0.12); }
.app-icon-orange { background: rgba(251,146,60,0.12); }

.app-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.75rem 0 1rem; }
.pricing-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.price-card {
  flex: 1;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.price-card .price-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: 'Space Grotesk', sans-serif; }
.price-card .price-amount { font-size: 1.6rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--text); margin: 0.25rem 0 0.1rem; }
.price-card .price-desc { font-size: 0.82rem; color: var(--muted); }

/* ── ABOUT STACK ── */
.skill-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  transition: border-color 0.15s, color 0.15s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-links { gap: 1.25rem; }
  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }
}

/* ── ACCORDION ── */
.app-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.app-summary-left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}
.app-summary-left .app-icon-img {
  flex-shrink: 0;
  margin-bottom: 0;
}
.accordion-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
  align-self: flex-start;
  margin-top: 0.25rem;
}
.accordion-toggle:hover { border-color: var(--accent); color: var(--accent); }
.accordion-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.accordion-arrow { transition: transform 0.25s ease; flex-shrink: 0; }
.accordion-toggle[aria-expanded="true"] .accordion-arrow { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-inner { padding-top: 0.25rem; }
.accordion-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ── FEATURE LIST ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.feature-list li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.25rem;
  position: relative;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ── SCREENSHOTS ── */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.screenshot-placeholder {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-placeholder span {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
}
.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
@media (max-width: 560px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .app-summary { flex-direction: column; }
}

/* ── FOCUS / A11Y ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
