:root {
  --primary: #1e40af;
  --primary-hover: #1e3a8a;
  --secondary: #64748b;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --foreground: #0f172a;
  --foreground-muted: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --card-border: #e2e8f0;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* Header */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.logo:hover {
  text-decoration: none;
  color: var(--foreground);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background: var(--background-alt);
}

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

/* Hero */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('/assets/hero-restaurant.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.35rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.hero .btn-primary:hover {
  background: #f1f5f9;
}

.hero .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: white;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.2);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--background-alt);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--foreground-muted);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Header */
.page-header {
  background: var(--background-alt);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--foreground-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Type Hero (Restaurant Type Pages) */
.type-hero {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.type-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.type-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* POS Cards */
.pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.pos-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pos-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pos-card > p {
  flex: 1;
}

.pos-card:hover {
  box-shadow: var(--shadow-lg);
}

.pos-card-full {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.pos-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pos-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius);
}

.pos-logo-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-weight: 700;
  border-radius: var(--radius);
}

.pos-logo-large {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.pos-logo-placeholder-large {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius);
}

.pos-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.pos-price {
  color: var(--success);
  font-weight: 600;
}

.pos-price-large {
  color: var(--success);
  font-size: 1.5rem;
  font-weight: 700;
}

.pos-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.feature-badge {
  background: var(--background-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.pos-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.pros h4 {
  color: var(--success);
  margin-bottom: 0.5rem;
}

.cons h4 {
  color: var(--error);
  margin-bottom: 0.5rem;
}

.pros ul, .cons ul {
  list-style: none;
  font-size: 0.9rem;
}

.pros li::before {
  content: "+";
  color: var(--success);
  font-weight: 700;
  margin-right: 0.5rem;
}

.cons li::before {
  content: "-";
  color: var(--error);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* POS Detail */
.pos-detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
}

.pos-detail-content {
  max-width: 900px;
  margin: 0 auto;
}

.pos-overview, .pos-key-features, .pos-pricing {
  margin-bottom: 3rem;
}

.pos-overview h2, .pos-key-features h2, .pos-pricing h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.key-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.key-feature {
  background: var(--background-alt);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.key-feature h4 {
  margin-bottom: 0.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pricing-plan {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.pricing-plan h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-plan .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.pricing-plan ul {
  list-style: none;
  text-align: left;
  font-size: 0.9rem;
}

.pricing-plan li {
  padding: 0.25rem 0;
}

.pricing-plan li::before {
  content: "✓";
  color: var(--success);
  margin-right: 0.5rem;
}

.pricing-note {
  color: var(--foreground-muted);
  font-size: 0.875rem;
  margin-top: 1rem;
  text-align: center;
}

.pos-pros-cons-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.pos-pros-cons-detail h3 {
  margin-bottom: 1rem;
}

.pos-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Restaurant Types */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.type-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.type-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
  color: var(--foreground);
  height: 100%;
}

.type-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.type-card h4, .type-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.type-card p {
  color: var(--foreground-muted);
  font-size: 0.9rem;
  flex: 1;
}

.type-card-full {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.2s;
  color: var(--foreground);
  height: 100%;
}

.type-card-full p {
  flex: 1;
}

.type-card-full:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.type-card-link {
  color: var(--primary);
  font-weight: 500;
  margin-top: 1rem;
  display: inline-block;
}

/* Process & Feature Lists */
.process-list, .feature-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.process-list li, .feature-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.process-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th, .comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--background-alt);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--success);
}

.comparison-table .cross {
  color: var(--error);
}

/* Comparison Table Home */
.comparison-table-home {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.comparison-name-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comparison-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.comparison-features {
  font-size: 0.875rem;
  color: var(--foreground-muted);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  margin-right: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.faq-item[open] summary::before {
  content: "-";
}

.faq-item p {
  padding: 0 1.5rem 1rem;
  color: var(--foreground-muted);
}

/* Conclusion */
.conclusion {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

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

.blog-card p {
  color: var(--foreground-muted);
  margin-bottom: 1rem;
}

.blog-read-more {
  font-weight: 500;
}

/* Blog Post */
.blog-post-header {
  background: var(--background-alt);
  padding: 3rem 0;
  text-align: center;
}

.blog-post-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.blog-post-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.blog-post-meta {
  color: var(--foreground-muted);
}

.blog-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  text-align: left;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem;
}

.blog-content p {
  margin-bottom: 1rem;
}

.blog-content ul {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-post-footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

/* About */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  text-align: left;
  margin: 2rem 0 1rem;
}

.about-content ul {
  margin-bottom: 1.5rem;
}

.about-content li {
  margin-bottom: 0.75rem;
}

/* Footer */
.footer {
  background: var(--foreground);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-section p {
  opacity: 0.8;
  font-size: 0.9rem;
}

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

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

.footer-section a {
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

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

/* Responsive */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--card);
    padding: 1rem 0;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

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

  .pos-grid, .type-grid, .blog-grid {
    grid-template-columns: 1fr;
  }

  .pos-pros-cons, .pos-pros-cons-detail {
    grid-template-columns: 1fr;
  }

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

  .pos-detail-header {
    flex-direction: column;
    text-align: center;
  }

  .pricing-grid, .key-features-grid {
    grid-template-columns: 1fr;
  }
}
