/* BitPointOfSale - Modern Minimalist Design */
/* Color Scheme: Navy Blue (#1E3A8A), Teal (#06B6D4), Orange (#F97316) */

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

:root {
  --primary: #1E3A8A;
  --secondary: #06B6D4;
  --accent: #F97316;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;
  --green-600: #16A34A;
  --red-600: #DC2626;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--slate-900);
  background-color: var(--white);
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.nav-menu {
  display: none;
  gap: 2rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--slate-700);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-menu a {
  color: var(--slate-600);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--slate-900);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-buttons .btn-outline {
  display: none;
}

@media (min-width: 640px) {
  .nav-buttons .btn-outline {
    display: inline-block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(30, 58, 138, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-300);
}

.btn-outline:hover {
  background-color: var(--slate-50);
  color: var(--slate-900);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--white);
}

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

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

.btn-white:hover {
  background-color: var(--slate-50);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663487878698/PNoxxXEMFEFL9a2DdrakWJ/bitpos-hero-bg-9X5GnvXTCxo7QbAgWJgE89.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.7), rgba(255, 255, 255, 0));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.hero h1 {
  color: var(--white);
  font-size: 2rem;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

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

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.btn-demo {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-demo:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
section {
  padding: 5rem 0;
}

@media (min-width: 640px) {
  section {
    padding: 8rem 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.125rem;
}

.bg-gradient-light {
  background: linear-gradient(to bottom, var(--white), var(--slate-50));
}

.bg-gradient-blue {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #3B82F6 0%, var(--secondary) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  margin-bottom: 1rem;
}

.card-benefits {
  list-style: none;
  margin-top: 1rem;
}

.card-benefits li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.card-benefits li:before {
  content: "•";
  color: var(--secondary);
  font-weight: bold;
}

/* Features Section */
.feature-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Benefits Section */
.benefits-list {
  list-style: none;
}

.benefits-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefits-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.benefits-list h3 {
  margin-bottom: 0.25rem;
  color: var(--slate-900);
}

.benefits-list p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Team Section */
.team-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #3B82F6 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.team-bio {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.team-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.team-links a {
  color: var(--slate-400);
  transition: color 0.3s ease;
}

.team-links a:hover {
  color: var(--secondary);
}

/* Contact Form */
.contact-form {
  max-width: 42rem;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--slate-900);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 6rem;
}

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

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Stats */
.stats-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--slate-600);
}

/* Footer */
footer {
  background-color: var(--slate-900);
  color: var(--slate-300);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}

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

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

.footer-section a {
  color: var(--slate-300);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-divider {
  border-top: 1px solid var(--slate-700);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

/* Responsive Typography */
@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 0.75rem;
    height: auto;
    padding: 0.75rem 0;
  }

  .nav-menu {
    order: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--slate-200);
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.625rem 0;
    font-size: 0.875rem;
  }

  .nav-container.nav-menu-open .nav-menu {
    display: flex;
  }

  .nav-container:focus-within .nav-menu {
    display: flex;
  }
}

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

  .nav-container {
    flex-wrap: wrap;
    gap: 0.75rem;
    height: auto;
    padding: 0.75rem 0;
  }

  .logo {
    font-size: 1.125rem;
  }

  .logo-icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .nav-menu {
    order: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--slate-200);
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 0.625rem 0;
    font-size: 0.875rem;
  }

  .nav-container.nav-menu-open .nav-menu {
    display: flex;
  }

  .nav-buttons {
    gap: 0.5rem;
  }

  .nav-buttons .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .nav-buttons .btn-outline {
    display: inline-flex;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  p {
    font-size: 0.95rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn,
  .btn-lg {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .nav-buttons .btn {
    width: auto;
  }

  .hero-buttons,
  .demo-actions {
    width: 100%;
  }

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

  .demo-account-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .grid {
    gap: 1.25rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card-benefits li {
    align-items: flex-start;
  }

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

  .benefits-list li {
    gap: 0.75rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  main[style*="padding: 2rem"] {
    padding: 1rem !important;
  }

  table {
    min-width: 42rem;
  }

  header span[style*="font-size: 1.25rem"] {
    font-size: 1rem !important;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
