:root {
  --bg-canvas: #fbfbfc;
  --bg-panel: #ffffff;
  --bg-subtle: #f0f2f5;
  --border-color: #e8eaed;
  --text-primary: #1a1f2e;
  --text-secondary: #5f6368;
  --accent-orange: #ec652b;
  --accent-orange-hover: #d55520;
  --accent-blue: #2563eb;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 8px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Global Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

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

.nav-brand {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand span.badge {
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-login {
  font-size: 14px;
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-cta {
  background-color: var(--accent-orange);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-cta:hover {
  background-color: var(--accent-orange-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  text-align: center;
}

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

/* Hero Section */
.hero-section {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-blue);
  border-radius: 50%;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

.hero-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.metric-item .metric-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-item .metric-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flow-step {
  text-align: center;
}

.step-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 auto 6px;
  font-family: var(--font-mono);
}

.step-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.flow-arrow {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Permission Table Section */
.permission-section {
  padding: 60px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.table-wrapper {
  overflow-x: auto;
}

.permission-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 20px;
}

.permission-table th {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border-color);
}

.permission-table th:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.permission-table th:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.permission-table td {
  background-color: var(--bg-canvas);
  padding: 14px 16px;
  font-size: 14px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.permission-table td:first-child {
  border-left: 1px solid var(--border-color);
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  font-weight: 500;
}

.permission-table td:last-child {
  border-right: 1px solid var(--border-color);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.check-orange {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: var(--accent-orange);
  color: #ffffff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.check-gray {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.check-dash {
  color: var(--text-secondary);
  font-weight: bold;
}

/* Features Section */
.features-section {
  padding: 80px 0;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-icon {
  font-size: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Preview Section */
.preview-section {
  padding: 80px 0;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.preview-ui-mockup {
  background: var(--text-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-header {
  background: #11141d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a5568;
}
.mockup-dots span:nth-child(1) { background: #fc8181; }
.mockup-dots span:nth-child(2) { background: #f6ad55; }
.mockup-dots span:nth-child(3) { background: #68d391; }

.mockup-title {
  font-size: 12px;
  color: #a0aec0;
  font-family: var(--font-mono);
}

.mockup-body {
  display: flex;
  height: 260px;
}

.mockup-sidebar {
  width: 120px;
  background: #161b26;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid #2d3748;
}

.mockup-line {
  height: 8px;
  background: #2d3748;
  border-radius: 4px;
}

.mockup-line.active {
  background: var(--accent-orange);
}

.mockup-content-area {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1a1f2e;
}

.mockup-row {
  height: 12px;
  background: #2d3748;
  border-radius: 4px;
}

/* Form Section */
.form-section {
  padding: 80px 0;
  background-color: var(--bg-subtle);
}

.form-grid-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.form-card-left {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  background: var(--bg-canvas);
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-orange);
  background: #ffffff;
}

.verify-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-receipt-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.receipt-header {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.receipt-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Global Footer */
.site-footer {
  background-color: var(--text-primary);
  color: #ffffff;
  padding: 64px 24px 32px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-col p {
  font-size: 14px;
  color: #9aa0a6;
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #9aa0a6;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9aa0a6;
}

.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #80868b;
}

.seo-tags span::after {
  content: " /";
  margin-left: 6px;
}
.seo-tags span:last-child::after {
  content: "";
}

/* Common Container & Typography */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .preview-grid, .form-grid-wrapper {
    grid-template-columns: 1fr;
  }
  .feature-cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
