/* MODEM99 — Premium Gold & Red Theme */

:root {
  --color-bg: #000000;
  --color-bg-elevated: #0d0303;
  --color-bg-card: #140606;
  --color-border: rgba(212, 175, 55, 0.15);
  --color-text: #f5f0e8;
  --color-text-muted: #a89b8c;
  --color-gold: #D4AF37;
  --color-gold-light: #FFD700;
  --color-gold-dark: #B8860B;
  --color-red: #9B1C1C;
  --color-red-deep: #4A0000;
  --color-red-bright: #C41E3A;
  --color-primary: #D4AF37;
  --color-primary-light: #FFD700;
  --color-accent: #C41E3A;
  --color-accent-glow: rgba(212, 175, 55, 0.35);
  --gradient-brand: linear-gradient(135deg, #FFD700 0%, #D4AF37 45%, #B8860B 100%);
  --gradient-red: linear-gradient(135deg, #8B0000 0%, #4A0000 100%);
  --gradient-card: linear-gradient(160deg, rgba(139, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Rajdhani', 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 60px rgba(212, 175, 55, 0.12);
  --shadow-red: 0 0 40px rgba(155, 28, 28, 0.2);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(139, 0, 0, 0.3), transparent),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(212, 175, 55, 0.06), transparent);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

strong {
  font-weight: 600;
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-gold);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Typography */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section {
  padding: 100px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #1a0505;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px var(--color-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #1a0505;
}

.btn--ghost {
  background: transparent;
  color: var(--color-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn--ghost:hover {
  background: rgba(139, 0, 0, 0.25);
  border-color: rgba(212, 175, 55, 0.7);
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  min-width: 0;
}

.logo__img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.footer .logo__img {
  height: 38px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__list a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav__list a:hover {
  color: var(--color-gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
}

.nav-backdrop.is-open {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: #8B0000;
  top: -10%;
  right: -5%;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: #D4AF37;
  bottom: 10%;
  left: -10%;
  opacity: 0.2;
}

.hero__logo {
  width: clamp(120px, 20vw, 180px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gold-light);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px var(--color-gold-light);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.hero__stat span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* About */
.about {
  background: var(--color-bg-elevated);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about__card {
  background: var(--gradient-card);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}

.about__card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.about__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-gold-light);
  margin-bottom: 20px;
}

.about__card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.about__card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--gradient-card);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: rgba(196, 30, 58, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.feature-card__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
  padding: 80px 0;
}

.cta-banner__inner {
  text-align: center;
  background: var(--gradient-red);
  background-color: var(--color-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.cta-banner__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1), transparent 70%);
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner__text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* FAQ */
.faq {
  background: var(--color-bg-elevated);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq__item[open] {
  border-color: rgba(212, 175, 55, 0.35);
}

.faq__item summary {
  padding: 20px 24px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-gold-light);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__tagline {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 360px;
}

.footer__nav {
  display: flex;
  gap: 48px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 10px;
}

.footer__col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

.footer__bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Subpage styles */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 80px 0;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 40px 0 16px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  color: var(--color-text-muted);
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content li {
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-gold-light);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header__inner {
    height: 64px;
  }

  .logo__img {
    height: 34px;
    max-width: 120px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(5, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--color-border);
    padding: 80px 20px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    pointer-events: auto;
    opacity: 1;
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
  }

  .nav__list a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav__list a:hover {
    background: rgba(139, 0, 0, 0.3);
  }

  .nav-toggle {
    display: flex;
  }

  .header__actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 90px 0 50px;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .hero__logo {
    width: min(140px, 40vw);
    margin-bottom: 20px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 40px;
  }

  .hero__actions .btn {
    width: 100%;
    white-space: normal;
  }

  .hero__stats {
    gap: 20px 32px;
  }

  .section {
    padding: 56px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .section__desc {
    font-size: 1rem;
  }

  .about__grid,
  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about__card,
  .feature-card {
    padding: 24px;
  }

  .cta-banner {
    padding: 48px 0;
  }

  .cta-banner__inner {
    padding: 36px 20px;
    margin: 0 4px;
  }

  .cta-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-banner__actions .btn {
    width: 100%;
    white-space: normal;
  }

  .faq__item summary {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq__item p {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }

  .footer {
    padding-top: 40px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer__nav {
    justify-content: flex-start;
    gap: 32px;
  }

  .footer__bottom p {
    font-size: 0.8rem;
    line-height: 1.8;
    padding: 0 8px;
  }

  .page-hero {
    padding: 100px 16px 40px;
  }

  .page-content {
    padding: 48px 0 64px;
  }

  .page-content .container {
    padding: 0 16px;
  }

  .page-content h2 {
    font-size: 1.25rem;
    margin-top: 28px;
  }

  .page-content .btn {
    display: flex;
    width: 100%;
    justify-content: center;
    word-break: break-all;
    white-space: normal;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .logo__img {
    height: 30px;
    max-width: 100px;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero__stat {
    text-align: center;
  }

  .footer__nav {
    flex-direction: column;
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
