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

:root {
  --bg-color: #080710;
  --card-bg: rgba(17, 19, 36, 0.65);
  --card-border: rgba(255, 255, 255, 0.07);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-primary: #8b5cf6;
  --accent-secondary: #ec4899;
  --accent-success: #10b981;
  --font-display: 'Space Grotesk', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --brand-glow: rgba(139, 92, 246, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Header & Navigation */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(8, 7, 16, 0.7);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  border-radius: 6px;
  position: relative;
}

.logo-icon::after {
  content: '⚡';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.1rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  margin-left: 1.5rem;
}

nav a:hover, nav a.active {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  max-width: 800px;
  margin: 5rem auto 3rem;
  text-align: center;
  padding: 0 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a78bfa 70%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Filter Controls & Search */
.controls-container {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .controls-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.search-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-input {
  width: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.filter-btn-group {
  display: flex;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.35rem;
  border-radius: 50px;
  border: 1px solid var(--card-border);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Tool & App Cards Grid */
.grid-container {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-glow);
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px -5px var(--brand-glow);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
}

.card-icon img, .card-icon svg {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
}

.detail-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-logo-wrapper img, .detail-logo-wrapper svg {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--card-border);
  padding: 0.8rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

.card:hover .card-btn {
  background: var(--brand-glow);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px var(--brand-glow);
}

/* Detail Offer Page Layout */
.detail-container {
  max-width: 1200px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .detail-container {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #fff;
}

.offer-header {
  margin-bottom: 2.5rem;
}

.offer-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  color: var(--accent-success);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.offer-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content h2 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.article-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-success);
  font-weight: bold;
}

/* Activation Form Card */
.activation-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px -15px var(--brand-glow);
  position: sticky;
  top: 6rem;
  align-self: start;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 4px solid var(--brand-glow);
}

.activation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.activation-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.activation-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  opacity: 0.95;
}

.btn-submit:active {
  transform: translateY(0);
}

.disclaimer {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.6);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}

/* Modal and Terminal Simulation */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 7, 16, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #0f111a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.terminal-header {
  background-color: #141724;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.terminal-body {
  padding: 2rem;
  min-height: 250px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #c9d1d9;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 350px;
  overflow-y: auto;
}

.terminal-line {
  line-height: 1.5;
  display: flex;
  gap: 0.5rem;
}

.terminal-line .info { color: #58a6ff; }
.terminal-line .success { color: #56d364; }
.terminal-line .warning { color: #d29922; }

/* Success State Screen */
.success-screen {
  text-align: center;
  padding: 2.5rem 2rem;
}

.success-icon {
  width: 5rem;
  height: 5rem;
  background-color: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--accent-success);
  animation: check-scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.success-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.btn-activate {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.3s ease;
}

.btn-activate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* FAQ Accordion Section */
.faq-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.25rem;
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Footer Section */
footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: rgba(8, 7, 16, 0.5);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 0.75rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Animations */
@keyframes check-scale {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hide elements dynamically */
.hidden {
  display: none !important;
}

/* Mobile & Tablet Phone Responsiveness Media Queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .offer-title {
    font-size: 1.8rem;
  }
  .nav-container {
    padding: 0.5rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
  }
  .logo-link {
    font-size: 1.25rem;
  }
  nav {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  nav a {
    margin: 0 0.5rem;
    font-size: 0.9rem;
  }
  .activation-card {
    padding: 1.5rem;
    position: static;
    width: 100%;
  }
  .detail-container {
    gap: 2rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  .hero {
    margin: 3rem auto 2rem;
  }
  .controls-container {
    gap: 1rem;
  }
  .filter-btn-group {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 12px;
    padding: 0.5rem;
    width: 100%;
  }
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
  }
  .search-wrapper {
    width: 100%;
  }
  .search-input {
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    font-size: 0.9rem;
  }
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .card {
    padding: 1.5rem;
  }
  .faq-question {
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
  }
  .faq-answer {
    font-size: 0.85rem;
  }
  .terminal-body {
    padding: 1rem;
    font-size: 0.75rem;
    min-height: 200px;
  }
  .modal-content {
    border-radius: 12px;
  }
  .success-icon {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
  }
  .success-title {
    font-size: 1.4rem;
  }
  .success-desc {
    font-size: 0.85rem;
  }
  .btn-activate {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }
}
