/* ==========================================================================
   Design Tokens & Variables (Minimal Light Theme)
   ========================================================================== */
:root {
  --color-bg: #FFFFFF;
  --color-bg-secondary: #FAFAFA;
  --color-border: #E4E4E7;
  --color-border-hover: #D4D4D8;
  
  --color-text: #09090B;
  --color-text-muted: #71717A;
  
  --color-primary: #7C3AED;      /* Premium violet */
  --color-primary-hover: #6D28D9;
  --color-primary-light: #F5F3FF;
  
  --color-success: #10B981;      /* Status Green */
  --color-warning: #F59E0B;      /* Status Yellow */
  --color-danger: #EF4444;       /* Status Red */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-float: 0 15px 30px -5px rgba(124, 58, 237, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Resets and Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg);
}

body {
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-top: 56px; /* Match new header height */
}

h1, h2, h3, h4 {
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem;
}

@media (max-width: 480px) {
  .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.header-logo:hover .logo-img {
  opacity: 1;
}

.logo-text {
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
  .nav-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .header-nav {
    display: none;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-secondary);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 5;
}

.hero-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(124, 58, 237, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hero-promo-badge:hover {
  transform: translateY(-1px);
  background-color: #ede9fe;
}

.hero-promo-badge strong {
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-promo-badge {
    align-self: center;
  }
  .hero-subtitle {
    max-width: 640px;
  }
  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Hero Visual & Gemini Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding-right: 15px;
}

@media (max-width: 480px) {
  .visual-wrapper {
    padding-right: 25px;
  }
}

.mascot-wrapper {
  position: absolute;
  top: -55px;
  right: 15px; /* Safely inside mockup bounds to prevent horizontal scroll */
  width: clamp(90px, 20vw, 130px);
  height: clamp(90px, 20vw, 130px);
  z-index: 10;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
  animation: float 4s ease-in-out infinite;
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.gemini-mockup {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
  width: 100%;
}

.mockup-header {
  background-color: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mockup-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup-header .dot.red { background-color: #EF4444; }
.mockup-header .dot.yellow { background-color: #F59E0B; }
.mockup-header .dot.green { background-color: #10B981; }

.mockup-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 10px;
}

.mockup-body {
  padding: 0;
}

/* Chat simulation styles */
.chat-simulation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--color-bg-secondary);
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.user-bubble {
  align-self: flex-end;
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

.user-bubble .bubble-text {
  color: #FFFFFF;
}

.system-bubble {
  align-self: flex-start;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 2px;
}

.bubble-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.bubble-tag.error {
  color: #DC2626;
}

.bubble-text {
  font-size: 0.85rem;
  color: var(--color-text);
}

.system-error-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.error-badge-warning {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400E;
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  align-self: flex-start;
}

.error-text-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.btn-secondary {
  background-color: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-border-hover);
  background-color: var(--color-bg-secondary);
}

.btn-purple {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-purple:hover {
  background-color: var(--color-primary-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* ==========================================================================
   Combined Hub Section (Diagnostics & FAQ)
   ========================================================================== */
.hub-section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--color-border);
}

.hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 1024px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

.block-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.block-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Status Box Styling */
.status-box {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.status-label {
  color: var(--color-text-muted);
}

.status-value.error {
  color: #DC2626;
}

.status-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.diag-cta-box {
  background-color: var(--color-primary-light);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.diag-cta-box p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.btn-cta-vpn {
  width: auto;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
}

@media (max-width: 480px) {
  .diag-cta-box {
    align-items: stretch;
  }
  .btn-cta-vpn {
    width: 100%;
  }
}

/* FAQ Accordion Styling inside the Grid */
.faq-accordion {
  border-top: 1px solid var(--color-border);
}

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

.faq-trigger {
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-size: clamp(0.92rem, 2.5vw, 1.05rem);
  font-weight: 600;
  color: var(--color-text);
  padding-right: 1.25rem;
  transition: color 0.15s ease;
  line-height: 1.4;
}

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

.faq-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.faq-trigger[aria-expanded="true"] .faq-arrow {
  transform: rotate(-135deg);
  border-color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 0 1.25rem 0;
}

.faq-answer-inner p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.faq-answer-inner strong {
  color: var(--color-text);
}

/* ==========================================================================
   Shop Section
   ========================================================================== */
.shop-section {
  padding: 4rem 0;
  padding: clamp(3rem, 6vw, 5rem) 0;
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.shop-banner-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.shop-banner-content {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shop-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--color-text);
}

.shop-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.shop-promo-badge-inline {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  border: 1px solid rgba(124, 58, 237, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.shop-promo-badge-inline strong {
  margin: 0 0.25rem;
  font-family: monospace;
  font-weight: 700;
}

.shop-banner-action {
  flex-shrink: 0;
}

.btn-shop-cta {
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .shop-banner-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1.5rem;
  }
  .shop-promo-badge-inline {
    align-self: center;
  }
  .btn-shop-cta {
    width: 100%;
  }
}

.market-card-action-box {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.market-price-tag {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.market-action-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.btn-market-cta {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 0;
  background-color: var(--color-bg-secondary);
}

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

.footer-brand-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  display: block;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001; /* Above floating promo */
  background-color: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Floating Promocode Notification Card (Chat-bubble style)
   ========================================================================== */
.floating-promo-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  animation: slide-in-bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -5px rgba(124, 58, 237, 0.18), 0 4px 10px rgba(0, 0, 0, 0.03);
}

.floating-promo-card.dismissed {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
}

@keyframes slide-in-bottom {
  0% { transform: translateY(100px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.close-promo-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
}

.close-promo-btn:hover {
  color: var(--color-text);
}

.promo-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  border: 1px solid rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.promo-card-avatar img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  margin-top: 2px;
}

.promo-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 10px;
}

.promo-card-sender {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-card-text {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text);
}

.promo-highlight {
  font-family: monospace;
  font-weight: 800;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.promo-card-action {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-top: 0.25rem;
  border-bottom: 1px dashed var(--color-border-hover);
  align-self: flex-start;
}

@media (max-width: 480px) {
  .floating-promo-card {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
