/* ==========================================================================
   Imram Labs — shared styles
   Extracted from samples/Imram Labs.html and samples/orbiter-product-page.html
   ========================================================================== */

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

:root {
  --ink: #0b0d12;
  --paper: #e8e2d9;
  --muted: rgba(220,214,204,0.72);
  --faint: rgba(220,214,204,0.35);
  --accent: rgba(220,214,204,0.95);
  --green: #1D9E75;
  --green-hover: #178a65;
  --orange: #dc7832;
  --irish-green: rgba(30, 158, 96, 0.9);
  --irish-orange: rgba(220, 120, 50, 1);
}

html { background: var(--ink); }
html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ─── Canvas background ─────────────────────────────────────── */
canvas { position: fixed; inset: 0; pointer-events: none; }
#stars { z-index: 0; opacity: 0.55; }
#globe { z-index: 0; opacity: 1; }

/* ─── Nav ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 56px;
  background: rgba(11,13,18,0.88);
  border-bottom: 1px solid rgba(220,214,204,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a.active { color: var(--green); }

/* ─── Page scaffolding ──────────────────────────────────────── */
main { position: relative; z-index: 1; }

.section {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}
.section-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300; font-style: italic;
  color: var(--paper);
  text-align: center;
  margin-bottom: 3.5rem;
  line-height: 1.3;
}

.page-divider {
  position: relative; z-index: 1;
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(220,214,204,0.2), transparent);
  margin: 0 auto;
}

/* ─── Hero (shared) ─────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 82vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 6rem 2rem 4rem;
  text-align: center;
  gap: 0;
}
.hero.hero-short { min-height: 60vh; }

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
  opacity: 0; animation: rise 1s ease .2s forwards;
}
.hero-mark {
  margin-bottom: 1.4rem;
  opacity: 0; animation: rise 1.2s cubic-bezier(.16,1,.3,1) .35s forwards;
}
.hero-icon {
  width: clamp(72px, 18vw, 120px);
  height: clamp(72px, 18vw, 120px);
  opacity: 0; animation: rise 1.2s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.hero-wordmark {
  margin-top: 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(16px, 4vw, 24px);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0; animation: rise 1.2s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
}
.hero-rule {
  width: 1px;
  height: clamp(28px, 5vh, 48px);
  background: var(--faint);
  margin: clamp(1.2rem, 3vh, 2.2rem) 0;
  opacity: 0; animation: rise 1s ease 0.7s forwards;
}
.hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 300; letter-spacing: .08em;
  color: var(--paper); line-height: 1;
  margin-bottom: 1.2rem;
  opacity: 0; animation: rise 1.2s cubic-bezier(.16,1,.3,1) .5s forwards;
}
.hero-tagline {
  font-family: 'Cormorant', serif;
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 300; font-style: italic;
  color: var(--irish-green);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.5;
  max-width: 560px;
  width: 100%;
  text-wrap: balance;
  opacity: 0; animation: rise 1.2s cubic-bezier(0.16,1,0.3,1) 0.85s forwards;
}
.hero-tagline-sm {
  font-size: clamp(18px, 3vw, 26px);
  margin-bottom: 1rem;
}
.hero-sub {
  margin-top: 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(11px, 2.5vw, 16px);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--irish-orange);
  text-align: center;
  text-wrap: balance;
  opacity: 0; animation: rise 1.2s cubic-bezier(0.16,1,0.3,1) 1.1s forwards;
}
.hero-sims {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 2.4rem;
  opacity: 0; animation: rise 1.2s cubic-bezier(.16,1,.3,1) .85s forwards;
}

.definition {
  margin-top: clamp(1.5rem, 3vh, 2.6rem);
  max-width: 560px;
  width: 100%;
  text-align: center;
  opacity: 0; animation: rise 1.2s cubic-bezier(0.16,1,0.3,1) 1.25s forwards;
}
.definition .headword {
  font-family: 'Cormorant', serif;
  font-size: clamp(13px, 2.5vw, 17px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}
.definition .entry {
  font-family: 'Cormorant', serif;
  font-size: clamp(17px, 3.5vw, 24px);
  font-weight: 300; font-style: italic;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: balance;
}
.definition .entry em {
  font-style: normal;
  color: var(--irish-orange);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--green);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--green-hover); transform: translateY(-1px); }

.hero-cta {
  margin-top: 1.8rem;
  opacity: 0; animation: rise 1.2s cubic-bezier(.16,1,.3,1) 1.5s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: rise 1s ease 1.6s forwards;
  cursor: pointer;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(220,214,204,0.5);
}
.scroll-chevron {
  width: 24px;
  height: 24px;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ─── Section variants ──────────────────────────────────────── */
.section-products { padding-top: 2rem; }

/* ─── Product card ──────────────────────────────────────────── */
.product-card {
  border: 1px solid rgba(220,214,204,0.12);
  border-left: 2px solid var(--green);
  border-radius: 12px;
  background: rgba(11,13,18,0.7);
  padding: 2rem 2.25rem;
  max-width: 540px;
  margin: 0 auto;
}
.product-card .product-name {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: .3rem;
}
.product-card .product-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .4rem;
}
.product-card .product-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.4rem;
}

/* ─── Studio (two-column) ───────────────────────────────────── */
.studio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}
.studio-mark img { width: 100px; height: 100px; display: block; }
.studio-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: .8rem;
}
.studio-body {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 300; font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  text-wrap: balance;
}

/* ─── Follow / Connect ──────────────────────────────────────── */
.follow {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.follow-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 300; font-style: italic;
  color: var(--paper);
  margin-bottom: 1.4rem;
}
.follow-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  text-wrap: balance;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 1.6rem);
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  text-decoration: none;
  padding: 0.3rem;
  -webkit-tap-highlight-color: transparent;
}
.social-links a:hover, .social-links a:active { opacity: 1; }
.social-links svg {
  width: 22px; height: 22px;
  fill: var(--paper);
}

/* ─── Product-page specifics ────────────────────────────────── */
.screenshots { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 6rem; }
.screenshot-main {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
  padding: 0 2rem;
}
.screenshot-placeholder {
  aspect-ratio: 16/9;
  border-radius: 12px;
  border: 1px solid rgba(220,214,204,0.1);
  background: rgba(220,214,204,0.03);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.screenshot-placeholder svg { opacity: .2; }
.screenshot-placeholder span {
  font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.screenshot-caption {
  margin-top: 14px;
  text-align: center;
  font-family: 'Cormorant', serif;
  font-size: 17px; font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 900px;
  margin: 16px auto 0;
  padding: 0 2rem;
}
.screenshot-sm {
  aspect-ratio: 16/9;
  border-radius: 10px;
  border: 1px solid rgba(220,214,204,0.08);
  background: rgba(220,214,204,0.02);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
}
.screenshot-sm span {
  font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid rgba(220,214,204,0.08);
  border-radius: 12px;
  overflow: hidden;
}
.feature {
  padding: 2rem;
  border-right: 1px solid rgba(220,214,204,0.08);
  border-bottom: 1px solid rgba(220,214,204,0.08);
  background: rgba(11,13,18,0.7);
}
.feature:nth-child(3n) { border-right: none; }
.feature:nth-child(4), .feature:nth-child(5), .feature:nth-child(6) { border-bottom: none; }
.feature-icon { margin-bottom: 1rem; }
.feature-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--paper);
  margin-bottom: .4rem;
}
.feature-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.plan {
  border-radius: 12px;
  border: 1px solid rgba(220,214,204,0.1);
  overflow: hidden;
  background: rgba(11,13,18,0.7);
}
.plan.pro { border-color: var(--green); border-width: 2px; }
.plan-head {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(220,214,204,0.08);
}
.plan-name {
  font-family: 'Cormorant', serif;
  font-size: 24px; font-weight: 300;
  color: var(--paper);
  margin-bottom: 4px;
}
.plan-price {
  font-size: 28px; font-weight: 500;
  color: var(--paper);
}
.plan-price span {
  font-size: 14px; font-weight: 300;
  color: var(--muted);
}
.plan-body { padding: 20px 24px; }
.plan-item {
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.plan-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 5px;
}
.plan-note {
  font-size: 12px;
  color: rgba(220,214,204,0.35);
  margin-top: 1.2rem;
  font-style: italic;
  text-align: center;
}

.beta {
  position: relative; z-index: 1;
  padding: 6rem 2rem;
  text-align: center;
}
.beta-panel { max-width: 480px; margin: 0 auto; }
.beta-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 300; font-style: italic;
  color: var(--paper);
  margin-bottom: 1rem;
}
.beta-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.beta-form { display: flex; gap: 8px; }
.beta-input {
  flex: 1; height: 46px;
  background: rgba(220,214,204,0.06);
  border: 1px solid rgba(220,214,204,0.2);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
}
.beta-input::placeholder { color: var(--faint); }
.beta-input:focus { border-color: var(--green); }
.beta-btn {
  height: 46px; padding: 0 24px;
  background: var(--green);
  border: none; border-radius: 8px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.beta-btn:hover { background: var(--green-hover); }
.beta-footnote {
  margin-top: .8rem;
  font-size: 11px;
  color: var(--faint);
  font-style: italic;
}

/* ─── Blog ──────────────────────────────────────────────────── */
.blog-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.blog-entry { padding: 2rem 0; }
.blog-entry + .blog-entry { border-top: 1px solid rgba(220,214,204,0.12); }
.blog-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .6rem;
}
.blog-title {
  font-family: 'Cormorant', serif;
  font-size: 26px; font-weight: 400;
  color: var(--paper);
  margin-bottom: .6rem;
  line-height: 1.25;
}
.blog-title a { color: inherit; text-decoration: none; transition: color .2s; }
.blog-title a:hover { color: var(--green); }
.blog-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: .8rem;
}
.blog-readmore {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
}
.blog-readmore:hover { color: var(--green-hover); }

/* ─── Article (single post) ─────────────────────────────────── */
.article {
  position: relative; z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}
.article-back {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color .2s;
}
.article-back:hover { color: var(--green); }
.article-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.article-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 400;
  color: var(--paper);
  line-height: 1.15;
  margin-bottom: 2.5rem;
}
.article-body {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 300;
  color: var(--paper);
  line-height: 1.8;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body a { color: var(--green); }
.article-body a:hover { color: var(--green-hover); }

.post-signature {
  margin-top: 2.5rem;
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-style: italic;
  color: rgba(220,214,204,0.6);
  border-top: 1px solid rgba(220,214,204,0.1);
  padding-top: 1.5rem;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center;
  gap: .7rem;
  padding: 3rem 1rem 2rem;
  border-top: 1px solid rgba(220,214,204,0.06);
  background: linear-gradient(to top, rgba(11,13,18,1) 65%, rgba(11,13,18,0.85) 85%, transparent);
}
.footer-closing {
  font-family: 'Cormorant', serif;
  font-size: 18px; font-weight: 300; font-style: italic;
  color: var(--orange);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 1.4rem;
}
.footer-links a {
  opacity: .5;
  transition: opacity .2s;
  text-decoration: none;
}
.footer-links a:hover { opacity: 1; }
.footer-links svg {
  width: 20px; height: 20px;
  fill: var(--paper);
}
.footer-url {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--faint);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 11px; }
  .nav-logo-text { display: none; }

  .section { padding: 4rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 3rem; }

  .features-grid { grid-template-columns: 1fr; }
  .feature { border-right: none !important; border-bottom: 1px solid rgba(220,214,204,0.08) !important; }
  .feature:last-child { border-bottom: none !important; }

  .pricing { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }

  .studio {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.4rem;
    justify-items: center;
  }
  .studio-mark img { width: 80px; height: 80px; }

  .beta-form { flex-direction: column; }
  .beta-btn { width: 100%; }
}
