/* ==========================================================================
   Silicon Fennec — studio digital
   ========================================================================== */
body[data-page="silicon"]{
  --accent: var(--azure);
  --accent-bright: #78a2f0;
}

/* ---- Hero ---- */
.si-hero{
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  background:
    radial-gradient(ellipse 720px 480px at 10% 6%, rgba(58,99,184,0.18), transparent 60%),
    radial-gradient(ellipse 600px 420px at 92% 96%, rgba(217,131,43,0.10), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.si-hero-grid{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.si-badge{
  width: 168px; height: 168px;
  margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
}
.si-badge img{ width: 100%; filter: drop-shadow(0 14px 26px rgba(0,0,0,0.55)); }
.si-hero-copy h1{ font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.06; margin: 20px 0 22px; }
.si-hero-copy p{ color: var(--parchment-dim); font-size: 16.5px; line-height: 1.8; max-width: 480px; }

/* ---- Terminal window (signature element) ---- */
.si-terminal{
  background: #0d1016;
  border: 1px solid rgba(120,162,240,0.18);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,0,0,0.4);
  border-radius: 4px;
  overflow: hidden;
}
.term-bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: #12161f;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.term-dot{ width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.d1{ background: #e0605a; }
.d2{ background: #e0b95a; }
.d3{ background: #5ac97a; }
.term-title{
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--parchment-faint);
  letter-spacing: 0.04em;
}
.term-body{
  margin: 0;
  padding: 26px 24px 30px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2;
  color: var(--parchment-dim);
  white-space: pre-wrap;
  overflow-x: auto;
}
.term-body .c-mut{ color: #5b6472; }
.term-body .c-fn{ color: var(--orange); }
.term-body .c-arg{ color: var(--accent-bright); }
.term-body .c-str{ color: #6fd6b8; }
.term-body .c-ok{ color: #6fd68a; }
.term-body .c-var{ color: var(--parchment); }
.cursor{ display: inline-block; margin-left: 2px; color: var(--accent-bright); animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity: 0; } }

@media (max-width: 900px){
  .si-hero-grid{ grid-template-columns: 1fr; }
  .term-body{ font-size: 12.5px; }
}

/* ==========================================================================
   Applications mobiles — copy + animated phone mockup
   ========================================================================== */
.apps-grid{
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.apps-copy h2{ font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 14px 0 20px; line-height: 1.18; }
.apps-copy p{ color: var(--parchment-dim); font-size: 15.5px; line-height: 1.8; max-width: 480px; }
.apps-note{ font-size: 12.5px !important; color: var(--parchment-faint) !important; margin-top: 18px; }

.app-badges{ display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.app-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  color: var(--parchment);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.app-badge:hover{ border-color: var(--accent); transform: translateY(-2px); }
.app-badge svg{ width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-bright); }
.app-badge span{ display: flex; flex-direction: column; line-height: 1.35; }
.app-badge span em{
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment-faint);
}
.app-badge span{ font-size: 13.5px; }

/* ---- Phone mockup ---- */
.apps-visual{ display: flex; justify-content: center; }
.phone-frame{
  position: relative;
  width: 240px;
  height: 490px;
  background: #0c0f15;
  border: 8px solid #1b2028;
  border-radius: 34px;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}
.phone-notch{
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 18px;
  background: #1b2028;
  border-radius: 0 0 12px 12px;
  z-index: 5;
}
.phone-screen{ position: absolute; inset: 0; background: linear-gradient(165deg,#12161f,#0a0d12); }
.app-screen{
  position: absolute;
  inset: 0;
  padding: 40px 18px 18px;
  opacity: 0;
  animation: appScreenCycle 12s infinite;
}
.app-screen-1{ animation-delay: 0s; }
.app-screen-2{ animation-delay: 4s; }
.app-screen-3{ animation-delay: 8s; }
@keyframes appScreenCycle{
  0%    { opacity: 0; transform: translateX(14px); }
  3%    { opacity: 1; transform: translateX(0); }
  30%   { opacity: 1; transform: translateX(0); }
  33%   { opacity: 0; transform: translateX(-14px); }
  100%  { opacity: 0; }
}
.app-topbar{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-title{ font-family: var(--font-display); font-size: 15px; color: var(--parchment); }
.app-stat-row{ display: flex; gap: 10px; margin-bottom: 16px; }
.app-stat{
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 12px;
}
.app-stat-num{ display: block; font-family: var(--font-display); font-size: 18px; color: var(--accent-bright); }
.app-stat-label{ display: block; font-size: 9px; color: var(--parchment-faint); margin-top: 2px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.app-chart{
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
  margin-bottom: 16px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}
.app-chart span{
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}
.app-card{
  height: 46px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.app-list-item{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-avatar{ width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(155deg, var(--accent-bright), var(--accent)); flex-shrink: 0; }
.app-list-text{ flex: 1; display: flex; flex-direction: column; gap: 6px; }
.app-list-text span{ display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.09); }
.app-list-text span:first-child{ width: 70%; }
.app-list-text span:last-child{ width: 42%; background: rgba(255,255,255,0.05); }
.app-profile-avatar{ width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(155deg, var(--accent-bright), var(--accent)); margin: 4px auto 14px; }
.app-profile-name{ width: 50%; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.12); margin: 0 auto 22px; }
.app-profile-row{ height: 38px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); margin-bottom: 10px; }
.app-profile-btn{ height: 40px; border-radius: 8px; background: var(--accent); margin-top: 12px; }

.phone-notif{
  position: absolute;
  top: 26px; left: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18,22,31,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  z-index: 6;
  opacity: 0;
  transform: translateY(-14px);
  animation: notifPop 12s infinite;
  backdrop-filter: blur(6px);
}
.phone-notif-icon{
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(155deg, var(--accent-bright), var(--accent));
  flex-shrink: 0;
}
.phone-notif-text{ display: flex; flex-direction: column; gap: 2px; }
.phone-notif-text strong{ font-size: 11px; color: var(--parchment); font-weight: 600; }
.phone-notif-text span{ font-size: 10px; color: var(--parchment-dim); }
@keyframes notifPop{
  0%   { opacity: 0; transform: translateY(-14px); }
  4%   { opacity: 1; transform: translateY(0); }
  14%  { opacity: 1; transform: translateY(0); }
  18%  { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .app-screen{ animation: none; opacity: 0; }
  .app-screen-1{ opacity: 1; }
  .phone-notif{ animation: none; opacity: 0; }
}
@media (max-width: 900px){
  .apps-grid{ grid-template-columns: 1fr; }
  .apps-visual{ order: -1; margin-bottom: 12px; }
}
@media (max-width: 420px){
  .phone-frame{ width: 210px; height: 430px; }
}
