/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #191b28;
  --bg-secondary: #252a3d;
  --bg-dark: #121525;
  --accent: #e5650e;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Allow selection only for copy button text, not the promo code itself */
.copy-btn {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Prevent selection on all content elements */
p, h1, h2, h3, h4, h5, h6, li, td, th, span, div, article, section, header, footer, main, a, table, tr, thead, tbody, tfoot, ul, ol, dl, dt, dd, blockquote, pre, code, em, strong, b, i, u, small, sub, sup, mark, del, ins {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Exception: allow links to be clickable but not selectable */
a {
  cursor: pointer;
  pointer-events: auto;
}

/* Prevent image dragging */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Prevent selection on promo code text, only allow button */
.promo-code {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

/* Mobile-first: Extra small devices (phones, 320px and up) */
@media (max-width: 374px) {
  .container {
    padding: 0 12px;
  }

  .logo svg {
    width: 100px;
    height: 35px;
  }

  .header-buttons {
    gap: 6px;
    width: 100%;
    justify-content: flex-end;
  }

  .btn-header {
    padding: 7px 12px;
    font-size: 12px;
    flex: 1;
    max-width: 48%;
  }

  .hero {
    padding: 20px 0;
  }

  .hero-banner {
    margin-bottom: 16px;
  }

  .main-banner-img {
    border-radius: 4px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .article-title {
    font-size: 22px;
  }

  .promo-content {
    padding: 14px;
  }

  .promo-content h3 {
    font-size: 18px;
  }

  .faq-question {
    padding: 14px;
    font-size: 14px;
  }

  .faq-answer p {
    padding: 0 14px 14px 14px;
    font-size: 13px;
  }
}

/* Header */
.header {
  background-color: var(--bg-dark);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

.logo svg {
  display: block;
  width: 120px;
  height: 40px;
}

.header-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-header {
  padding: 8px 16px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-register {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-register:hover {
  background-color: var(--accent);
  color: var(--text-primary);
}

.nav {
  display: none;
  gap: 24px;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: block;
}

.mobile-menu-toggle svg {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-banner-img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.hero h1 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
  padding: 0 8px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--accent);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #d45a0c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 101, 14, 0.4);
}

.btn-primary {
  font-size: 16px;
  padding: 14px 28px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Promo Section */
.promo-section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  padding: 0 8px;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.promo-card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.promo-image {
  width: 100%;
  height: 120px;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-image svg {
  width: 100%;
  height: 100%;
}

.promo-content {
  padding: 16px;
}

.promo-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.promo-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  background-color: var(--bg-dark);
  border-radius: 6px;
  flex-wrap: wrap;
  font-size: 14px;
}

.code-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.code-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.copy-btn {
  background-color: var(--accent);
  color: var(--text-primary);
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
  transition: background-color 0.3s;
  min-height: 32px;
  white-space: nowrap;
  touch-action: manipulation;
}

.copy-btn:hover {
  background-color: #d45a0c;
}

.copy-btn.copied {
  background-color: #4caf50;
}

.promo-desc {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.promo-features {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.feature-tag {
  background-color: rgba(229, 101, 14, 0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Content Section */
.content-section {
  padding: 40px 0;
  background-color: var(--bg-primary);
}

.content-article {
  max-width: 900px;
  margin: 0 auto;
}

.article-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  padding: 0 8px;
}

.article-banner {
  width: 100%;
  margin: 20px 0 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.article-banner .banner-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.content-article h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.3;
}

.content-article p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.content-list li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
  padding-left: 20px;
  position: relative;
}

.content-list li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 20px;
}

.content-list li strong {
  color: var(--text-primary);
}

.comparison-table {
  overflow-x: auto;
  margin: 24px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.comparison-table table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table thead {
  background-color: var(--bg-dark);
}

.comparison-table th {
  padding: 12px 8px;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

.comparison-table td {
  padding: 12px 8px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table td strong {
  color: var(--accent);
}

/* FAQ Section */
.faq-section {
  padding: 40px 0;
  background-color: var(--bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-secondary);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.3s;
  touch-action: manipulation;
  min-height: 52px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question span {
  flex: 1;
  margin-right: 16px;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 16px 16px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Features Section */
.features-section {
  padding: 40px 0;
  background-color: var(--bg-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 20px 16px;
}

.feature-item svg {
  margin-bottom: 16px;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  padding: 32px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Mobile Menu */
.nav.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-dark);
  padding: 24px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  gap: 16px;
}

/* Small devices (landscape phones, 480px and up) */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .section-title {
    font-size: 26px;
  }

  .article-title {
    font-size: 28px;
  }

  .logo svg {
    width: 130px;
    height: 45px;
  }

  .header-buttons {
    gap: 10px;
  }

  .btn-header {
    padding: 9px 18px;
    font-size: 14px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 14px 10px;
    font-size: 13px;
  }
}

/* Medium devices (tablets, 640px and up) */
@media (min-width: 640px) {
  .hero {
    padding: 30px 0;
  }

  .hero-banner {
    margin-bottom: 20px;
  }

  .promo-section,
  .content-section,
  .faq-section,
  .features-section {
    padding: 50px 0;
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .header-buttons {
    gap: 16px;
  }

  .btn-header {
    padding: 12px 24px;
    font-size: 15px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .promo-section,
  .content-section,
  .faq-section,
  .features-section {
    padding: 60px 0;
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-title {
    font-size: 36px;
  }

  .content-article h3 {
    font-size: 26px;
  }

  .comparison-table th,
  .comparison-table td {
    font-size: 15px;
    padding: 18px;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 48px;
  }

  .section-title {
    font-size: 36px;
  }

  .promo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .promo-code {
    flex-wrap: nowrap;
  }

  .article-title {
    font-size: 40px;
  }

  .content-article h3 {
    font-size: 28px;
  }
}
