/*
 * Kryptonix Wallet - Main Stylesheet
 * Version 1.0
 */

/* ===== BASE STYLES ===== */
:root {
  /* Primary Colors */
  --primary-dark: #1a1513;
  --primary-light: #d9ccba;
  --primary-accent: #3da48c;

  /* Neutral Colors */
  --neutral-100: #ffffff;
  --neutral-200: #f5f5f5;
  --neutral-300: #e5e5e5;
  --neutral-400: #d4d4d4;
  --neutral-500: #a3a3a3;
  --neutral-600: #737373;
  --neutral-700: #525252;
  --neutral-800: #404040;
  --neutral-900: #262626;

  /* UI Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Dimensions */
  --header-height: 80px;
  --container-max-width: 1280px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 450ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--neutral-800);
  background-color: var(--primary-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--neutral-100);
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--neutral-400);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

/* ===== COMPONENTS ===== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-accent);
  color: var(--neutral-100);
}

.btn-primary:hover {
  background-color: #34917b;
  color: var(--neutral-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: rgba(217, 204, 186, 0.1);
  transform: translateY(-2px);
}

.btn-link {
  background: none;
  padding: 0;
  color: var(--primary-accent);
  position: relative;
  font-weight: 600;
}

.btn-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-accent);
  transition: width var(--transition-normal);
}

.btn-link:hover::after {
  width: 100%;
}

/* Header */
.header {
        display: grid;
    align-items: center;
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(26, 21, 19, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(217, 204, 186, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img {
  height: 40px;
}

.main-nav .nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--neutral-300);
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  color: var(--neutral-100);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-accent);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-dark);
  min-width: 200px;
  padding: 1rem 0;
  margin-top: 0.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(217, 204, 186, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 10;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--neutral-300);
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: rgba(61, 164, 140, 0.1);
  color: var(--primary-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon {
  width: 24px;
  height: 24px;
  background-image: url('/public/icons/cart.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-accent);
  color: var(--neutral-100);
  font-size: 0.75rem;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--neutral-300);
  transition: all var(--transition-normal);
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/public/images/hero-bg.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--neutral-400);
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

.partners {
  margin-top: 4rem;
  text-align: center;
}

.partners h4 {
  margin-bottom: 2rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

/* Footer */
.footer {
  background-color: var(--primary-dark);
  border-top: 1px solid rgba(217, 204, 186, 0.1);
  padding: 5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--neutral-300);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--neutral-500);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--primary-accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(217, 204, 186, 0.1);
}

.footer-logo img {
  height: 30px;
}

.footer-copyright p {
  color: var(--neutral-600);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity var(--transition-fast);
}

.social-icon:hover {
  opacity: 0.8;
}

.telegram {
  background-image: url('/public/icons/telegram.svg');
}

.github {
  background-image: url('/public/icons/github.svg');
}

.linkedin {
  background-image: url('/public/icons/linkedin.svg');
}

.facebook {
  background-image: url('/public/icons/facebook.svg');
}

.twitter {
  background-image: url('/public/icons/twitter.svg');
}

.youtube {
  background-image: url('/public/icons/youtube.svg');
}

.instagram {
  background-image: url('/public/icons/instagram.svg');
}

/* ===== PRODUCT PAGE STYLES ===== */

/* Product Hero Section */
.product-hero {
  padding: 5rem 0;
  background-color: var(--primary-dark);
}

.product-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.product-heading h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.product-package {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-package span {
  display: inline-flex;
  align-items: center;
  color: var(--neutral-400);
  font-size: 0.9rem;
}

.product-package span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  margin-right: 0.5rem;
}

.product-price {
  margin-bottom: 2rem;
}

.original-price {
  color: var(--neutral-500);
  text-decoration: line-through;
  font-size: 1.25rem;
  margin-right: 1rem;
}

.current-price {
  color: var(--neutral-100);
  font-size: 2rem;
  font-weight: 700;
}

.discount-badge {
  display: inline-block;
  background-color: var(--primary-accent);
  color: var(--neutral-100);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 1rem;
}

.product-actions {
  margin-top: 2rem;
}

.payment-options {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.payment-options span {
  display: inline-flex;
  align-items: center;
  color: var(--neutral-400);
  font-size: 0.875rem;
}

.payment-options span::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 0.5rem;
}

.payment-options span:first-child::before {
  background-image: url('/public/icons/crypto.svg');
}

.payment-options span:last-child::before {
  background-image: url('/public/icons/support.svg');
}

.product-gallery {
  position: relative;
}

.main-image {
  width: 100%;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.thumbnail-images {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnail-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
  opacity: 1;
}

/* Product Benefits */
.product-benefits {
  padding: 4rem 0;
  background-color: rgba(26, 21, 19, 0.8);
  border-top: 1px solid rgba(217, 204, 186, 0.1);
  border-bottom: 1px solid rgba(217, 204, 186, 0.1);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.benefit {
  padding: 1.5rem;
  background-color: rgba(217, 204, 186, 0.05);
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-normal);
}

.benefit:hover {
  transform: translateY(-5px);
}

.benefit h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--neutral-100);
}

.benefit p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--neutral-400);
}

.trusted-by {
  text-align: center;
  margin-top: 3rem;
}

.trusted-by h4 {
  color: var(--neutral-500);
  font-size: 0.875rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
}

/* X1 Vault and X1 Cards sections */
.x1-vault,
.x1-cards {
  padding: 5rem 0;
  background-color: var(--primary-dark);
}

.x1-vault h2,
.x1-cards h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.x1-vault > .container > p,
.x1-cards > .container > p {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.vault-features,
.cards-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.vault-feature,
.card-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-image {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-image img {
  max-width: 100%;
  max-height: 100%;
}

.feature-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--neutral-400);
}

/* Specifications Section */
.specifications {
  padding: 5rem 0;
  background-color: rgba(26, 21, 19, 0.8);
}

.specifications h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.spec-group h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--primary-accent);
}

.spec-item {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.spec-label {
  color: var(--neutral-500);
  margin-right: 0.5rem;
}

.spec-value {
  color: var(--neutral-300);
}

/* Hard Case Section */
.hard-case {
  padding: 5rem 0;
  background-color: var(--primary-dark);
  text-align: center;
}

.hard-case h2 {
  margin-bottom: 3rem;
}

.case-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.case-feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.case-feature p {
  color: var(--neutral-400);
}

/* App Promo Section */
.app-promo {
  padding: 5rem 0;
  background-color: rgba(26, 21, 19, 0.8);
  text-align: center;
}

.app-promo h2 {
  margin-bottom: 1rem;
}

.app-promo p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.supported-platforms {
  margin-top: 3rem;
}

.supported-platforms p {
  margin-bottom: 1.5rem;
  color: var(--neutral-500);
}

.platform-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.platform span {
  color: var(--neutral-400);
  font-size: 0.875rem;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--primary-dark);
}

.faq h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(217, 204, 186, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.toggle-icon {
  position: relative;
  width: 16px;
  height: 16px;
}

.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary-accent);
  transition: transform var(--transition-normal);
}

.toggle-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.toggle-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

/* ===== CUSTOMER REVIEWS CAROUSEL ===== */
.reviews-carousel {
  padding: 4rem 0;
  background-color: rgba(26, 21, 19, 0.8);
  border-top: 1px solid rgba(217, 204, 186, 0.1);
  border-bottom: 1px solid rgba(217, 204, 186, 0.1);
}

.reviews-carousel h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.carousel-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.review-card {
  min-width: 100%;
  padding: 2rem;
  background-color: rgba(217, 204, 186, 0.05);
  border-radius: var(--border-radius-lg);
  text-align: center;
}

.review-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--neutral-300);
}

.review-author {
  font-weight: 600;
  color: var(--neutral-100);
}

.review-role {
  color: var(--neutral-500);
  font-size: 0.875rem;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--neutral-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--primary-accent);
  transform: scale(1.2);
}

/* ===== ENHANCED FAQ SECTION ===== */
.faq-enhanced {
  background-color: var(--primary-dark);
}

.faq-enhanced .faq-item {
  background-color: rgba(217, 204, 186, 0.05);
  border-radius: var(--border-radius-md);
  padding: 0 1.5rem;
  margin-bottom: 1rem;
  border: none;
}

.faq-enhanced .faq-question {
  padding: 1.5rem 0;
}

.faq-enhanced .faq-question h3 {
  font-size: 1.25rem;
}

.faq-enhanced .faq-answer {
  padding: 0 0 1.5rem;
}

/* ===== FEATURE HIGHLIGHTS SECTION ===== */
.feature-highlights {
  padding: 5rem 0;
  background-color: rgba(26, 21, 19, 0.8);
}

.feature-highlights h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.highlight-card {
  padding: 2rem;
  background-color: rgba(217, 204, 186, 0.05);
  border-radius: var(--border-radius-lg);
  transition: transform var(--transition-normal);
}

.highlight-card:hover {
  transform: translateY(-5px);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(61, 164, 140, 0.1);
  border-radius: 50%;
}

.highlight-card h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.highlight-card p {
  text-align: center;
  margin-bottom: 0;
}

.faq-item.active .toggle-icon::after {
  transform: rotate(90deg);
}

.faq-answer {
  padding: 0 0 1.5rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer ol,
.faq-answer ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
  color: var(--neutral-400);
}

.faq-answer ul li {
  list-style-type: disc;
}

.faq-answer ol li {
  list-style-type: decimal;
}
