/* ============================================================
   SILVIA — COMPANY HOMEPAGE
   Reuses tokens.css + components.css (same family as Skyline).
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.25s, background-color 0.25s;
}
.nav.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav .container { display: flex; align-items: center; gap: var(--sp-6); width: 100%; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; color: var(--text); }
.brand .star { color: var(--accent); font-size: 1.35rem; line-height: 1; }
.brand-logo { height: 30px; width: auto; display: block; filter: saturate(1.08) contrast(1.04) drop-shadow(0 1px 1.5px rgba(10, 55, 45, 0.28)); }
.footer-brand .brand-logo { height: 32px; }
[data-theme="dark"] .brand-logo { filter: saturate(1.05) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
@media (prefers-reduced-motion: no-preference) {
  .brand-logo { transition: transform 0.25s var(--ease-out), filter 0.25s var(--ease-out); }
  .brand:hover .brand-logo { transform: translateY(-1px) scale(1.02); }
}
.nav-links { display: flex; align-items: center; gap: 0.2rem; margin-left: var(--sp-4); }
.nav-links a { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); padding: 0.5rem 0.75rem; border-radius: var(--r-sm); transition: color 0.15s, background 0.15s; font-family: var(--font-head); }
.nav-links a:hover { color: var(--text); background: var(--bg-subtle); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.theme-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); transition: color 0.15s, border-color 0.15s, background 0.15s; }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 18px; height: 18px; }
.nav-burger { display: none; width: 40px; height: 40px; place-items: center; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--sp-5); display: none; flex-direction: column; gap: var(--sp-2); box-shadow: var(--sh-lg); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.8rem 0.6rem; border-radius: var(--r-sm); font-weight: 600; color: var(--text); font-family: var(--font-head); }
.mobile-menu a:hover { background: var(--bg-subtle); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 6rem); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: var(--fs-5xl); margin-bottom: var(--sp-5); }
.hero h1 .grad { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: var(--fs-lg); color: var(--text-secondary); margin-bottom: var(--sp-6); line-height: 1.5; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.hero-meta .pill { font-family: var(--font-head); }

/* abstract accent graphic — layered orbit, no stock imagery */
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; width: 100%; }
.hero-art .orb { position: absolute; inset: 14% 14%; border-radius: 50%; background: var(--grad-accent); box-shadow: 0 20px 60px -18px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 0 60px rgba(255,255,255,0.25); }
.hero-art .orb::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: clamp(3rem, 8vw, 5.5rem); text-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.hero-art .ring { position: absolute; inset: 0; border: 1.5px solid var(--border-strong); border-radius: 50%; opacity: 0.7; }
.hero-art .ring.r2 { inset: 9%; border-style: dashed; opacity: 0.5; }
.hero-art .node { position: absolute; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-md); display: grid; place-items: center; color: var(--accent); }
.hero-art .node svg { width: 22px; height: 22px; }
.hero-art .node.n1 { top: -6px; left: 50%; transform: translateX(-50%); }
.hero-art .node.n2 { top: 32%; right: -10px; }
.hero-art .node.n3 { bottom: 6%; right: 14%; }
.hero-art .node.n4 { bottom: 6%; left: 14%; }
.hero-art .node.n5 { top: 32%; left: -10px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ring.r2 { animation: spin 36s linear infinite; }
  .hero-art .orb { animation: floaty 8s ease-in-out infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

.hero-glow { position: absolute; z-index: 0; top: -20%; right: -8%; width: 60%; height: 90%; pointer-events: none;
  background: radial-gradient(50% 50% at 66% 42%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%),
              radial-gradient(46% 48% at 58% 66%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }

/* ---------- SECTION SCAFFOLD ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 7rem); }
.eyebrow-row { margin-bottom: var(--sp-5); }

/* ---------- TENETS / THESIS ---------- */
.thesis { background: var(--bg-subtle); }
.thesis-lead { max-width: 60ch; }
.tenets { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-top: var(--sp-7); }
.tenet { padding: var(--sp-5); position: relative; }
.tenet .tnum { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent); margin-bottom: var(--sp-4); }
.tenet .icon-chip { margin-bottom: var(--sp-4); }
.tenet h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.tenet p { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ---------- PRODUCT PORTFOLIO ---------- */
.portfolio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-7); }
.portfolio-head .section-head { margin-bottom: 0; }
.portfolio-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-5); }

.product-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--sh-sm); padding: var(--sp-6);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--border-strong); }
.product-card.span-3 { grid-column: span 3; }
.product-card.span-2 { grid-column: span 2; }
.product-card.feature { grid-column: span 6; }

/* feature card (Skyline) — two-column with art */
.product-card.feature { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-6); align-items: center; padding: clamp(1.75rem, 3vw, 2.75rem); }
.product-card.feature .pc-art { position: relative; min-height: 220px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border: 1px solid var(--border); overflow: hidden; display: grid; place-items: center; }

.pc-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.pc-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.01em; }
.pc-logo .glyph { width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; background: var(--grad-accent); flex: none; box-shadow: var(--sh-sm); }
.pc-logo .glyph svg { width: 20px; height: 20px; }
.pc-logo .by { font-weight: 500; color: var(--text-muted); font-size: var(--fs-sm); }
.pc-prop { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xl); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: var(--sp-3); text-wrap: balance; }
.product-card.feature .pc-prop { font-size: var(--fs-2xl); }
.pc-desc { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--sp-4); }
.pc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.pc-for { font-size: var(--fs-xs); color: var(--text-muted); }
.pc-for b { color: var(--text-secondary); font-weight: 600; font-family: var(--font-head); }

/* status badges (honest) */
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-head); font-weight: 600; font-size: var(--fs-xs); padding: 0.3rem 0.7rem; border-radius: var(--r-full); border: 1px solid transparent; white-space: nowrap; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.building { background: var(--tier-auto-bg); color: var(--tier-auto-fg); }
.status.building .dot { animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{ opacity: 1;} 50%{ opacity: 0.35;} }
.status.dev { background: var(--bg-sunken); color: var(--text-secondary); border-color: var(--border); }

/* per-product accent glyph backgrounds (abstract) */
.pc-art .art-mark { font-size: clamp(3.5rem, 10vw, 6rem); color: var(--accent); opacity: 0.9; }
.mini-art { width: 56px; height: 56px; border-radius: var(--r-lg); display: grid; place-items: center; margin-bottom: var(--sp-4); color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-border); }
.mini-art svg { width: 27px; height: 27px; }

.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: var(--accent); }
.link-arrow svg { transition: transform 0.2s var(--ease-out); width: 17px; height: 17px; }
.link-arrow:hover svg { transform: translateX(4px); }
.dev-note { font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm); color: var(--text-muted); display: inline-flex; align-items: center; gap: var(--sp-2); }
.dev-note svg { width: 15px; height: 15px; }

/* ---------- VISION ---------- */
.vision { background: var(--bg-subtle); }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.domain-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.domain-row { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.domain-row .icon-chip { width: 40px; height: 40px; }
.domain-row .dr-name { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-base); }
.domain-row .dr-sub { font-size: var(--fs-xs); color: var(--text-muted); }

/* token lab — small, humble */
.tokenlab { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-xs); margin-top: var(--sp-6); }
.tokenlab .tl-glyph { width: 50px; height: 50px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--bg-sunken); color: var(--text); flex: none; }
[data-theme="dark"] .tokenlab .tl-glyph { background: var(--surface-2); color: var(--text); }
.tokenlab .tl-glyph svg { width: 26px; height: 26px; }
.tokenlab .tl-body { flex: 1; min-width: 0; }
.tokenlab .tl-name { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-base); display: flex; align-items: center; gap: var(--sp-2); }
.tokenlab .tl-name .tag { font-size: 0.66rem; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border); padding: 0.1rem 0.45rem; border-radius: var(--r-full); }
.tokenlab .tl-desc { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: 2px; }

/* ---------- VALUES ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-6); }
.value-card { padding: var(--sp-5); }
.value-card .icon-chip { margin-bottom: var(--sp-4); }
.value-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.value-card p { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ---------- ABOUT (placeholder) ---------- */
.about { text-align: center; }
.about-card { max-width: 60ch; margin-inline: auto; padding: clamp(2rem, 4vw, 3rem); border-style: dashed; }
.placeholder-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-sunken); border: 1px dashed var(--border-strong); padding: 0.2rem 0.55rem; border-radius: var(--r-sm); margin-bottom: var(--sp-4); }

/* ---------- FINAL CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--slate-900); border-radius: var(--r-2xl); padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
[data-theme="dark"] .cta-band { background: var(--surface-2); border: 1px solid var(--border); }
.cta-band .cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; position: relative; }
[data-theme="dark"] .cta-band h2 { color: var(--text); }
.cta-band p { color: var(--slate-300); margin: var(--sp-4) auto var(--sp-6); max-width: 50ch; position: relative; }
[data-theme="dark"] .cta-band p { color: var(--text-secondary); }
.cta-band .cta-actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-6); margin-bottom: var(--sp-8); }
.footer-brand p { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: var(--sp-3); max-width: 34ch; }
.footer h5 { font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-4); }
.footer-col a { display: block; font-size: var(--fs-sm); color: var(--text-secondary); padding: 0.3rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-muted); }
.footer-bottom .legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-disclaimer { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-4); line-height: 1.5; max-width: 72ch; }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease-out), transform 0.9s cubic-bezier(0.25,1.05,0.4,1); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .tenets { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  .product-card.span-3 { grid-column: span 2; }
  .product-card.span-2 { grid-column: span 2; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; order: -1; }
  .vision-grid { grid-template-columns: 1fr; }
  .product-card.feature { grid-template-columns: 1fr; }
  .product-card.feature .pc-art { min-height: 160px; order: -1; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-actions .desktop-only { display: none; }
  .nav-burger { display: grid; }
  .tenets { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .product-card.span-3, .product-card.span-2, .product-card.feature { grid-column: span 1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
