/* ============================================
   DandeFox — Dark Purple Theme
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #0D0D1A 0%, #14142B 40%, #0D0D1A 100%);
  background-attachment: fixed;
  color: #E8E8F0;
  line-height: 1.6;
  min-height: 100vh;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0D0D1A; }
::-webkit-scrollbar-thumb { background: #7C5CBF; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9B7FD4; }

/* LINKS */
a { color: #B89FE8; text-decoration: none; transition: color .2s; }
a:hover { color: #d4c4f5; }

/* HEADER */
header {
  background: rgba(13,13,26,.88);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(124,92,191,.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #7C5CBF, transparent);
  opacity: .5;
}
header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: .4rem;
  letter-spacing: .3px;
}
nav { display: flex; justify-content: center; gap: .3rem; flex-wrap: wrap; }
nav a, nav button {
  color: #888;
  margin: 0 .5rem;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .88rem;
  padding: .2rem 0;
  transition: color .2s;
}
nav a:hover, nav button:hover { color: #fff; }
nav a.active { color: #B89FE8; border-bottom: 2px solid #7C5CBF; }

/* MAIN */
main { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60%; left: -30%; width: 160%; height: 220%;
  background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(124,92,191,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .6rem;
  position: relative;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: #999;
  max-width: 560px;
  margin: 0 auto 2rem;
  position: relative;
}

/* SECTION */
.section { padding: 3rem 0; }
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
  font-size: .95rem;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: #1A1A2E;
  border: 1px solid rgba(124,92,191,.1);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  transition: transform .25s, border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,92,191,.35);
  box-shadow: 0 8px 32px rgba(124,92,191,.1);
}
.card .card-icon { font-size: 1.8rem; margin-bottom: .7rem; }
.card h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: #888; font-size: .9rem; line-height: 1.55; }

/* PRODUCT CARD */
.product-card {
  background: #1A1A2E;
  border: 1px solid rgba(124,92,191,.2);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C5CBF, #B89FE8, #7C5CBF);
}
.product-card:hover {
  border-color: rgba(124,92,191,.4);
  box-shadow: 0 12px 48px rgba(124,92,191,.12);
}
.product-card .pc-logo {
  width: 64px; height: 64px;
  background: rgba(124,92,191,.1);
  border: 1px solid rgba(124,92,191,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #7C5CBF; font-size: 1.8rem; font-weight: 800;
  margin-bottom: 1.2rem;
}
.product-card h3 {
  font-size: 1.6rem; color: #fff; margin-bottom: .2rem;
}
.product-card .pc-sub {
  color: #888; font-size: .9rem; margin-bottom: 1rem;
}
.product-card .pc-desc {
  color: #aaa; font-size: .93rem; line-height: 1.6; margin-bottom: 1.2rem;
}
.product-card .pc-meta {
  display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.product-card .pc-meta span {
  color: #777; font-size: .85rem;
}
.product-card .pc-meta span strong {
  color: #B89FE8;
}

/* FEATURE ICONS ROW */
.feature-row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem;
}
.feature-row .fr-item {
  display: flex; align-items: center; gap: .35rem;
  font-size: .82rem; color: #777;
}
.feature-row .fr-item .fr-icon { font-size: 1rem; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #7C5CBF, #5A3D9E);
  color: #fff !important;
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(124,92,191,.35); }
.btn-outline {
  background: transparent;
  color: #B89FE8 !important;
  border: 1px solid rgba(124,92,191,.35);
}
.btn-outline:hover { background: rgba(124,92,191,.08); box-shadow: 0 4px 16px rgba(124,92,191,.1); }
.btn-group { display: flex; gap: .8rem; flex-wrap: wrap; }

button {
  padding: .65rem 1.2rem;
  border-radius: 8px;
  background: #1A1A2E;
  color: #B89FE8;
  border: 1px solid rgba(124,92,191,.3);
  cursor: pointer;
  font-size: .88rem;
  transition: background .2s, border-color .2s;
}
button:hover { background: rgba(124,92,191,.1); border-color: #7C5CBF; }

.cta-row { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }

/* VERSION BADGE */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 5px;
  background: rgba(124,92,191,.15); color: #B89FE8;
  vertical-align: middle; margin-left: .5rem;
}

/* ABOUT PAGE */
.about-content { max-width: 700px; margin: 0 auto 2.5rem; }
.about-content p { color: #aaa; font-size: .95rem; margin-bottom: 1rem; line-height: 1.7; }

/* CONTACT PAGE */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item .ci-icon { font-size: 1.3rem; margin-bottom: .3rem; }
.contact-item h3 { color: #fff; font-size: 1rem; margin-bottom: .2rem; }
.contact-item p { color: #888; font-size: .88rem; }
.contact-item a { color: #B89FE8; }

.contact-form {
  background: #1A1A2E;
  border: 1px solid rgba(124,92,191,.12);
  border-radius: 14px;
  padding: 2rem;
}
.contact-form label {
  display: block;
  font-size: .85rem;
  color: #999;
  margin-bottom: .3rem;
  margin-top: 1rem;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .65rem .8rem;
  background: #12122a;
  border: 1px solid rgba(124,92,191,.15);
  border-radius: 8px;
  color: #E8E8F0;
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #7C5CBF;
}
.contact-form select { cursor: pointer; }
.contact-form select option { background: #14142B; color: #E8E8F0; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .form-note { font-size: .8rem; color: #555; margin-top: 1rem; }

/* STATUS / UTILITY */
.status { margin-top: .8rem; min-height: 1.2rem; color: #999; }
.hide { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: #555; font-size: .85rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* FOOTER */
footer {
  border-top: 1px solid rgba(124,92,191,.1);
  padding: 2rem 2rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner .foot-left { color: #444; font-size: .83rem; }
.footer-inner .foot-center { display: flex; gap: 1.2rem; }
.footer-inner .foot-center a { color: #555; font-size: .83rem; }
.footer-inner .foot-center a:hover { color: #B89FE8; }
.footer-inner .foot-right { color: #555; font-size: .83rem; }
.footer-inner .foot-right a { color: #B89FE8; }
/* Simple footer fallback */
footer p { text-align: center; color: #444; font-size: .83rem; }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; text-align: center; }
  header h1 { font-size: 1.3rem; }
  .hero h2 { font-size: 1.8rem; }
  nav a, nav button { margin: 0 .3rem; font-size: .8rem; }
}

/* FORM CARD (legacy compat) */
.form-card {
  background: #1A1A2E;
  border: 1px solid rgba(124,92,191,.15);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  max-width: 400px;
  margin: 2rem auto;
}
.form-card label { display: block; margin: .6rem 0; color: #ccc; font-size: .9rem; }
.form-card input {
  width: 100%; padding: .65rem; margin-top: .3rem;
  background: #12122a; border: 1px solid rgba(124,92,191,.2);
  border-radius: 6px; color: #E8E8F0; font-size: .9rem;
}
.form-card input:focus { outline: none; border-color: #7C5CBF; }
.form-card button {
  margin-top: 1rem; padding: .65rem 1.2rem;
  background: linear-gradient(135deg, #7C5CBF, #5A3D9E);
  color: #fff; border: none; border-radius: 8px;
  cursor: pointer; font-weight: 600;
}
