/* ============================================
   SOLYN Website - Digital Guardian Aesthetic
   Dark atmospheric with glowing orange accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700&display=swap');

/* --- Tokens --- */
:root {
  --bg-primary: #0F0F1A;
  --bg-secondary: #161625;
  --bg-card: #1C1C2E;
  --bg-card-hover: #22223A;
  --orange: #FF8C42;
  --orange-light: #FFB07A;
  --orange-dim: rgba(255, 140, 66, 0.15);
  --orange-glow: rgba(255, 140, 66, 0.4);
  --text-primary: #F0F0F0;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B80;
  --border: rgba(255, 255, 255, 0.06);
  --border-orange: rgba(255, 140, 66, 0.2);
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1120px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise overlay for texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-light); }

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

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

.section {
  padding: 100px 0;
  position: relative;
}

.section--alt {
  background: var(--bg-secondary);
}

/* --- Typography --- */
.pixel { font-family: var(--font-pixel); }

.heading-xl {
  font-family: var(--font-pixel);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.heading-lg {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 20px);
  line-height: 1.6;
  color: var(--orange);
  margin-bottom: 16px;
}

.heading-md {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 1.5vw, 14px);
  line-height: 1.6;
  color: var(--text-primary);
}

.heading-sm {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
}

.body-lg {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.body-md {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-orange { color: var(--orange); }

/* --- Header / Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav__logo-text {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--orange);
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(16px);
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.nav__mobile.open { display: block; }

.nav__mobile a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--orange); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--orange);
  color: #0F0F1A;
  box-shadow: 0 4px 24px rgba(255, 140, 66, 0.3);
}

.btn--primary:hover {
  background: var(--orange-light);
  color: #0F0F1A;
  box-shadow: 0 6px 32px rgba(255, 140, 66, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}

/* Atmospheric gradient orbs */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -200px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.05) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--orange-dim);
  border: 1px solid var(--border-orange);
  border-radius: 100px;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--orange);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  max-width: 700px;
  margin-bottom: 24px;
}

.hero__subtitle {
  max-width: 520px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.06;
  pointer-events: none;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-dim);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 22px;
}

.feature-card__title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.feature-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
}

.stat {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
}

.stat__number {
  font-family: var(--font-pixel);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--orange);
  margin-bottom: 8px;
}

.stat__label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Benefits --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.benefit {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.benefit:hover {
  border-color: var(--border-orange);
}

.benefit__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-dim);
  border-radius: 50%;
  font-size: 28px;
}

.benefit__title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--orange);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.benefit__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.testimonial__stars {
  color: var(--orange);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.testimonial__name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.testimonial__days {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--orange);
  background: var(--orange-dim);
  padding: 4px 10px;
  border-radius: 4px;
}

/* --- CTA Section --- */
.cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 140, 66, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__title {
  margin-bottom: 16px;
  position: relative;
}

.cta__subtitle {
  max-width: 480px;
  margin: 0 auto 40px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer__brand-name {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links a:hover { color: var(--orange); }

.footer__copy {
  width: 100%;
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-page__header {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-page__updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.legal-section__content {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Support / FAQ --- */
.faq-list {
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

.faq-item__question:hover { color: var(--orange); }

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 20px;
  transition: transform 0.3s;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-item__answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Contact Section --- */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 560px;
  margin: 48px auto 0;
}

.contact-card__email {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--orange);
  margin-top: 16px;
  display: inline-block;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .features-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__visual { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }

  .features-grid,
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: block; }

  .hero { min-height: auto; padding-top: 120px; padding-bottom: 64px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }

  .contact-card { padding: 32px 24px; }
}
