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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #ffffff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: #6b7280;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  background: none;
  font-family: inherit;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #2563eb;
  border-color: #2563eb;
}

.btn-secondary:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: #1f2937;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-logo h2 {
  color: #2563eb;
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-logo a {
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #2563eb;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #1f2937;
  margin: 3px 0;
  transition: 0.3s;
}

/* Breadcrumb */
.breadcrumb {
  padding: 100px 0 20px;
  font-size: 0.9rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1f2937, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #6b7280;
}

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

.hero-image {
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

.code-window {
  background: #1f2937;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
}

.window-header {
  background: #374151;
  padding: 12px;
  display: flex;
  align-items: center;
}

.window-buttons {
  display: flex;
  gap: 8px;
}

.window-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-close {
  background: #ef4444;
}

.btn-minimize {
  background: #f59e0b;
}

.btn-maximize {
  background: #10b981;
}

.code-content {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
}

.code-line {
  color: #e5e7eb;
  margin-bottom: 8px;
}

.keyword {
  color: #8b5cf6;
}

.function {
  color: #10b981;
}

.string {
  color: #f59e0b;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.section-header p {
  font-size: 1.25rem;
  color: #6b7280;
}

/* About Section */
.about {
  padding: 80px 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-content h3 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.about-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat h4 {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #6b7280;
  margin: 0;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature h4 {
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.feature p {
  margin: 0;
}

/* Products Section */
.products {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.product-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.product-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-content h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.product-content p {
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 1.5rem;
}

.feature-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1.5rem;
}

/* Templates Section */
.templates {
  padding: 80px 0;
  background: white;
}

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

.template-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.template-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.template-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.template-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.template-card:hover .template-image img {
  transform: scale(1.1);
}

.template-content {
  padding: 1.5rem;
}

.template-content h3 {
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.template-content p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.template-tech {
  margin-bottom: 1rem;
}

.tech-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.template-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 1rem;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.service-card p {
  margin: 0;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  color: #1f2937;
}

.contact-item p {
  margin: 0;
  color: #6b7280;
}

.contact-form {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: white;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Product Details Page */
.product-details-page {
  padding: 80px 0;
  background: white;
}

.product-details-content {
  margin-top: 2rem;
}

.product-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 2rem;
  border-radius: 20px;
  margin-bottom: 4rem;
}

.product-hero-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.product-icon-large {
  font-size: 5rem;
}

.product-info h1 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.product-tagline {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #6b7280;
}

.product-price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 2rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.product-section {
  margin-bottom: 3rem;
}

.product-section h2 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.features-grid {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.feature-check {
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.benefits-grid {
  display: grid;
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f0f9ff;
  border-radius: 8px;
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.specs-card,
.cta-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.specs-card h3,
.cta-card h3 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.spec-label {
  font-weight: 500;
  color: #6b7280;
}

.spec-value {
  color: #1f2937;
}

.cta-card p {
  margin-bottom: 1.5rem;
  color: #6b7280;
}

.cta-card .btn {
  margin-bottom: 1rem;
}

/* Purchase Page */
.purchase-page {
  padding: 80px 0;
  background: #f8fafc;
}

.purchase-container {
  max-width: 1000px;
  margin: 0 auto;
}

.purchase-header {
  text-align: center;
  margin-bottom: 3rem;
}

.purchase-header h1 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.purchase-header p {
  font-size: 1.2rem;
  color: #6b7280;
}

.purchase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.purchase-details,
.purchase-form-container {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.purchase-details h2,
.purchase-form-container h2 {
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.order-summary {
  margin-bottom: 2rem;
}

.order-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.item-details h3 {
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.item-details p {
  margin-bottom: 1rem;
  color: #6b7280;
}

.item-features,
.item-tech {
  margin-bottom: 1rem;
}

.item-features h4,
.item-tech h4 {
  margin-bottom: 0.5rem;
  color: #1f2937;
  font-size: 1rem;
}

.item-features ul {
  list-style: none;
  padding-left: 0;
}

.item-features li {
  padding: 0.25rem 0;
  color: #6b7280;
}

.item-features li:before {
  content: "✓ ";
  color: #10b981;
  font-weight: bold;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.item-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  text-align: right;
}

.order-notes {
  background: #f0f9ff;
  padding: 1.5rem;
  border-radius: 8px;
}

.order-notes h4 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.order-notes ul {
  list-style: none;
  padding-left: 0;
}

.order-notes li {
  padding: 0.25rem 0;
  color: #6b7280;
}

.order-notes li:before {
  content: "• ";
  color: #2563eb;
  font-weight: bold;
}

.purchase-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-label a {
  color: #2563eb;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.purchase-summary {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.summary-row.total {
  border-top: 2px solid #e5e7eb;
  padding-top: 0.5rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2937;
}

.purchase-btn {
  position: relative;
}

.btn-loading {
  display: none;
}

/* Policy Pages */
.policy-page {
  padding: 80px 0;
  background: white;
}

.policy-content {
  max-width: 800px;
  margin: 2rem auto 0;
}

.policy-content h1 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.last-updated {
  color: #6b7280;
  font-style: italic;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.policy-section {
  margin-bottom: 2.5rem;
}

.policy-section h2 {
  margin-bottom: 1rem;
  color: #1f2937;
  font-size: 1.5rem;
}

.policy-section h3 {
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  color: #374151;
  font-size: 1.2rem;
}

.policy-section ul,
.policy-section ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.policy-section li {
  margin-bottom: 0.5rem;
  color: #6b7280;
}

.contact-info {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: #1f2937;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 50px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: #9ca3af;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #2563eb;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .purchase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-actions {
    justify-content: center;
  }
}

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

  .nav-container {
    padding: 0 15px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .products,
  .templates,
  .services,
  .about,
  .contact {
    padding: 60px 0;
  }

  .product-card,
  .template-card,
  .service-card {
    padding: 1.5rem;
  }

  .contact-form,
  .purchase-details,
  .purchase-form-container,
  .specs-card,
  .cta-card {
    padding: 1.5rem;
  }

  .product-hero {
    padding: 2rem 1rem;
  }

  .product-icon-large {
    font-size: 3rem;
  }

  .product-price-large {
    font-size: 2rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 1rem;
  }
}