:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --gray-light: #cbd5e1;
  --gray-lighter: #f1f5f9;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* Coming Soon Banner */
.coming-soon-banner {
    background: var(--gradient);
    color: var(--white);
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 600;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: var(--shadow);
}

.coming-soon-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.banner-icon {
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

.banner-text {
    font-size: 0.875rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 2.9rem;
  left: 0;
  right: 0;
  background: var(--dark);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dark-light);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

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

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

.logo-icon {
  font-size: 1.5rem;
}

.logo-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.banner-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  animation: pulse 2s ease-in-out infinite;
}


.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--gray-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a:hover {
  color: var(--white);
}

.github-link {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.github-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: linear-gradient(
    180deg,
    var(--gray-lighter) 0%,
    var(--white) 100%
  );
  margin-top: 7rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gray);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.hero-stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--gray);
  font-size: 0.875rem;
  font-weight: 500;
}

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

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

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--gray);
}

/* Features */
.features {
  background: var(--white);
}

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

.feature-card {
  padding: 2rem;
  background: var(--gray-lighter);
  border-radius: 1rem;
  transition: all 0.3s;
}

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

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

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* How It Works */
.how-it-works {
  background: var(--gray-lighter);
}

.steps {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--gray);
  line-height: 1.6;
}

/* Screenshots */
.screenshots {
  background: var(--white);
}

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

.screenshot-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.screenshot-card:hover {
  transform: translateY(-8px);
}

.screenshot-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--gray-lighter);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-light);
  transition: all 0.3s ease;
  aspect-ratio: 4 / 3;
}

.screenshot-card:hover .screenshot-frame {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.screenshot-frame picture {
  display: block;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.screenshot-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.screenshot-info p {
  color: var(--gray);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Use Cases */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.use-case {
  padding: 2rem;
  background: var(--white);
  border: 2px solid var(--gray-lighter);
  border-radius: 1rem;
  transition: all 0.3s;
}

.use-case:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

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

.use-case p {
  color: var(--gray);
}

/* Download */
.download {
  background: var(--dark);
  color: var(--white);
}

.download-card {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.download-card h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-card > p {
  font-size: 1.25rem;
  color: var(--gray-light);
  margin-bottom: 3rem;
}

.download-buttons {
  margin-bottom: 3rem;
}

.download-info {
  padding: 2rem;
  background: var(--dark-light);
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.download-info p {
  color: var(--gray-light);
  line-height: 1.8;
}

.download-alternative {
  padding: 1.5rem;
  background: var(--dark-light);
  border-radius: 0.5rem;
}

.download-alternative code {
  display: block;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.5rem;
  font-family: "Monaco", "Courier New", monospace;
  color: var(--primary);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.faq-item p {
  color: var(--gray);
  line-height: 1.6;
}

/* Rules Setup Guide */
.rules-guide {
  background: var(--white);
}

.rules-content {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

.rule-type-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--gray-lighter) 0%, var(--white) 100%);
  border: 2px solid var(--gray-light);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rule-type-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rule-type-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.rule-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.rule-example {
  padding: 1.5rem;
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
}

.rule-example h4 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.example-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.example-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-lighter);
  border-radius: 0.5rem;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.common-apps {
  padding: 1rem;
  background: var(--gray-lighter);
  border-radius: 0.5rem;
}

.common-apps strong {
  display: block;
  margin-bottom: 0.75rem;
}

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

.tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.matching-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.matching-type {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 0.75rem;
}

.matching-type h4 {
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 1rem;
}

.matching-type p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.code-example {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--gray-lighter);
  border-radius: 0.5rem;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.85rem;
}

.code-example code {
  color: var(--primary);
  font-weight: 600;
  word-break: break-all;
}

.matches {
  color: #10b981;
  font-size: 0.85rem;
}

.no-match {
  color: #ef4444;
  font-size: 0.85rem;
}

.rule-priority {
  padding: 2rem;
  background: var(--gray-lighter);
  border-radius: 1rem;
  margin: 2rem 0;
}

.rule-priority .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.rule-priority h3 {
  margin: 0;
}

.priority-example {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.priority-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
}

.priority-item.fallback-item {
  border-left-color: var(--accent);
}

.priority-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.priority-item.fallback-item .priority-num {
  background: var(--accent);
}

.priority-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.priority-note {
  margin: 0;
  color: var(--gray);
  font-size: 0.9rem;
}

.practical-scenarios {
  margin-top: 3rem;
}

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

.scenario-card {
  padding: 2rem;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: 1rem;
  transition: all 0.3s;
}

.scenario-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.scenario-card h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.scenario-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-card li {
  padding: 0.75rem;
  background: var(--gray-lighter);
  border-radius: 0.5rem;
  color: var(--gray);
  font-size: 0.95rem;
}

.scenario-card strong {
  color: var(--dark);
  font-weight: 600;
}

/* Guides Section */
.guides {
  background: var(--gray-lighter);
}

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

.guide-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.guide-category {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  width: fit-content;
}

.guide-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--dark);
  line-height: 1.4;
}

.guide-card > p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.guide-content {
  margin: 0 0 1.5rem 0;
}

.guide-content h4 {
  margin-bottom: 1rem;
  color: var(--dark);
  font-size: 1rem;
}

.guide-content ol {
  margin-left: 1.5rem;
  color: var(--gray);
  line-height: 1.8;
}

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

.guide-tip {
  padding: 1rem;
  background: var(--gray-lighter);
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
}

.guide-tip strong {
  color: var(--dark);
}

.read-more {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.read-more:hover {
  transform: translateX(4px);
}

/* Limitations Section */
.limitations {
  background: var(--white);
}

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

.limitation-card {
  padding: 2rem;
  background: var(--gray-lighter);
  border-radius: 1rem;
  border-left: 4px solid var(--secondary);
}

.limitation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.limitation-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-yellow {
  background: #fef3c7;
  color: #92400e;
}

.badge-orange {
  background: #fed7aa;
  color: #9a3412;
}

.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.limitation-card > p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.limitation-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.limitation-card li {
  color: var(--gray);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.limitation-card li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.features-comparison {
  background: var(--gray-lighter);
  padding: 2rem;
  border-radius: 1rem;
  overflow-x: auto;
}

.features-comparison h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: var(--dark);
  color: var(--white);
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-light);
  background: var(--white);
}

.comparison-table tbody tr:hover {
  background: var(--gray-lighter);
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
  text-align: center;
}

.available {
  color: #10b981;
  font-weight: 600;
  font-size: 1.25rem;
}

.unavailable {
  color: #ef4444;
  font-weight: 600;
  font-size: 1.25rem;
}

.url-examples {
  background: var(--gray-lighter);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.url-examples strong {
  display: block;
  margin-bottom: 1rem;
}

.url-example {
  padding: 0.75rem;
  background: var(--white);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray);
}

.url-example code {
  background: var(--gray-lighter);
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

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

.footer-brand p {
  color: var(--gray-light);
  margin-top: 1rem;
}

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

.footer-column a {
  display: block;
  color: var(--gray-light);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-light);
  color: var(--gray);
}

.footer-bottom p {
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .coming-soon-banner {
        font-size: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .navbar {
        top: 2.5rem;
    }
    
    .hero {
        margin-top: 6rem;
    }
    
  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    gap: 2rem;
  }

  .nav-links {
    display: none;
  }

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

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

  .section-header h2 {
    font-size: 2rem;
  }

  .matching-types {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .screenshot-frame {
    aspect-ratio: 4 / 3;
  }

  .priority-item {
    flex-direction: column;
    gap: 1rem;
  }

  .priority-num {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }

  .rule-type-card {
    padding: 1.5rem;
  }

  .limitation-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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