/* ============================================
   Mialos — Global Stylesheet
   Futuristic dark/neon tech studio design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

/* --- Design Tokens --- */
:root {
  --bg: #0A0A0F;
  --bg-card: #12121A;
  --text: #FFFFFF;
  --text-sub: #A0A0B0;
  --cyan: #00F5FF;
  --purple: #BF5FFF;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'IBM Plex Mono', monospace;
  --glow-cyan: 0 0 15px rgba(0, 245, 255, 0.4);
  --glow-cyan-strong: 0 0 30px rgba(0, 245, 255, 0.6), 0 0 60px rgba(0, 245, 255, 0.2);
  --glow-purple: 0 0 15px rgba(191, 95, 255, 0.4);
  --border-radius: 8px;
  --max-width: 1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: var(--purple);
  text-shadow: var(--glow-purple);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.08);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header .logo:hover {
  color: var(--cyan);
  text-shadow: var(--glow-cyan-strong);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Hero --- */
.hero {
  padding: 180px 0 100px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text);
  font-style: italic;
  margin-bottom: 12px;
}

.hero .subtitle {
  font-size: 0.95rem;
  color: var(--text-sub);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Products --- */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 32px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan), inset 0 0 30px rgba(0, 245, 255, 0.03);
  transform: translateY(-4px);
}

.product-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
}

.product-card p {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.product-card .card-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 8px 20px;
  border-radius: 4px;
  display: inline-block;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.product-card .card-link:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: var(--glow-cyan);
  text-shadow: none;
}

/* --- Studio Section --- */
.studio-text {
  max-width: 700px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact-section {
  text-align: center;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  border: 1px solid rgba(0, 245, 255, 0.3);
  padding: 16px 36px;
  border-radius: var(--border-radius);
  display: inline-block;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.contact-email:hover {
  background: rgba(0, 245, 255, 0.08);
  box-shadow: var(--glow-cyan-strong);
  color: var(--cyan);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--border-radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(160, 160, 176, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 14px 36px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  width: 100%;
}

.form-submit:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: var(--glow-cyan-strong);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(0, 245, 255, 0.08);
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(160, 160, 176, 0.5);
}

/* --- Section Headers --- */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.9rem;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 60px;
}

.legal-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 8px;
}

.legal-content .last-updated {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.legal-content p,
.legal-content ul {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--cyan);
}

/* --- Support Page --- */
.support-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: var(--border-radius);
  padding: 32px;
}

.support-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.support-card p {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.support-card .support-email {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.response-time {
  text-align: center;
  margin-top: 40px;
  color: var(--text-sub);
  font-size: 0.85rem;
}

/* --- Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fadeSlideUp 0.7s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.25s; }
.animate-delay-3 { animation-delay: 0.4s; }
.animate-delay-4 { animation-delay: 0.55s; }
.animate-delay-5 { animation-delay: 0.7s; }

/* --- Responsive --- */
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .support-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 140px 0 60px;
  }
}
