/* ==== Base / Tokens ==== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
  --bg: #000;  
  --card-bg: #0b0b0b;
  --brand: #edb539;     
  --brand-soft: rgba(237,181,57,0.28);
  --radius: 28px;
  --inset-pad: 8px;
  --ring-speed: 8s;    
  --ring-speed-hover: 3.2s; 
  --logo-width: 140px;
  --logo-border-radius: 35px;
}

html { color-scheme: dark; }
body{
  min-height: 100vh;
  background: var(--bg);
  color: #ddd;
  display: grid;
  place-items: center;
  font-family: "Chivo Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==== Layout ==== */
main{
  display: grid;
  place-items: center;
  width: 100%;
}

.footer{
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0.8;
  white-space: nowrap;
  user-select: none;
  color: var(--brand);
}

/* ==== Logo Card ==== */
@property --angle{
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Logo image */
.logo-card img{
  width: var(--logo-width);
  height: auto;
  position: relative;
  display: block;
  z-index: 2;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.logo-card{
  margin: 0 auto;
  background: #000;
  text-align: center;
  border-radius: var(--logo-border-radius);
  position: relative;
}

.logo-card::after, .logo-card::before{
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: var(--logo-border-radius);
  animation: 3s spin linear infinite;
}
.logo-card::before{
  filter: blur(1.5rem);
  opacity: 0.5;
}
@keyframes spin{
  from{ --angle: 0deg; }
  to{ --angle: 360deg; }
}

/* ==== CTA Buttons (About) ==== */
.cta-buttons{
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 4.2rem;
}

.cta{
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  user-select: none;
}
.cta:hover{
  background: var(--brand);
  color: #000;
  box-shadow: 0 0 15px rgba(237,181,57,0.45);
  transform: translateY(-1px);
}
.cta.ghost{
  border-color: rgba(237,181,57,0.45);
  color: rgba(237,181,57,0.75);
}
.cta.ghost:hover{
  border-color: var(--brand);
  color: #000;
}

/* ==== About Modal ==== */
.about-dialog{
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(600px, 92vw);
  border-radius: 16px;
}

.about-dialog::backdrop{
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  transition: opacity .2s ease;
}

.about-card{
  background: #0b0b0b;
  border-radius: 16px;
  overflow: hidden;
  color: #eee;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 26px var(--brand-soft),
    0 0 46px rgba(237,181,57,0.14);
  min-width: 320px;
}

/* Subtle animated accent bar */
.about-card::before{
    
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  animation: shimmer 3.2s linear infinite;
  opacity: .8;
}
@keyframes shimmer{ to{ transform: translateX(100%); } }

/* Header */
.about-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.about-header h2{
  font-size: 1.15rem;
  letter-spacing: .5px;
}

/* Close button */
.icon-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  line-height: 30px;
  text-align: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.icon-btn:hover{
  background: var(--brand);
  color: #000;
  box-shadow: 0 0 12px rgba(237,181,57,0.5);
  transform: translateY(-1px);
}

/* Body/content */
.about-content{
  padding: 16px;
  display: grid;
  gap: 14px;
}
.about-intro{
  color: #d8d8d8;
  line-height: 1.5rem;
}
.about-list{
  display: grid;
  gap: 8px;
  padding-left: 1.1rem;
}
.about-list li{
  line-height: 1.45rem;
  color: #cfcfcf;
}

/* Meta rows */
.about-meta{
  display: grid;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 10px 12px;
}
.about-meta span{
  color: var(--brand);
  font-weight: 600;
  margin-right: 6px;
}
.about-meta em{
  color: #bbb;
  font-style: normal;
}

/* Footer actions */
.about-actions{
  display: flex;
  gap: .8rem;
  justify-content: flex-end;
  margin-top: 6px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .logo-card::before,
  .logo-card::after,
  .about-dialog::backdrop,
  .about-card::before,
  .cta,
  .icon-btn{ animation: none; transition: none; }
}
