/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background-color: #0f172a;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #1e293b;
  z-index: 1000;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #f1f5f9;
  z-index: 1001;
}

.nav-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: #3b82f6;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: #3b82f6;
}

.nav-link-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
  font-size: 0.875rem;
}

.nav-link-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
}

.nav-link-icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  width: 1.5rem;
  height: 2px;
  background: #f1f5f9;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #1e293b;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  text-decoration: none;
  color: #94a3b8;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: #3b82f6;
}

.mobile-nav-link-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: all 0.2s;
}

/* Hero Section */
.hero {
  padding: 6rem 0 3rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(168, 85, 247, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #f1f5f9;
  text-align: center;
}

.hero-highlight {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
  line-height: 1.6;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  width: 100%;
  max-width: 280px;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

.hero-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
  text-align: center;
}

.disclaimer-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Contribution Graph */
.contribution-graph {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
}

.graph-header {
  margin-bottom: 1rem;
  text-align: center;
}

.graph-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #f1f5f9;
}

.graph-subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
}

.graph-container {
  position: relative;
}

.graph-months {
  display: grid;
  grid-template-columns: 1rem repeat(12, 1fr);
  gap: 0.125rem;
  margin-bottom: 0.375rem;
  font-size: 0.625rem;
  color: #64748b;
  text-align: center;
}

.graph-main {
  display: flex;
  gap: 0.375rem;
}

.graph-days {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.625rem;
  color: #64748b;
  width: 1rem;
  height: 82px;
  text-align: right;
  padding-right: 0.125rem;
}

.graph-weeks {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.graph-weeks::-webkit-scrollbar {
  height: 4px;
}

.graph-weeks::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.graph-weeks::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.graph-weeks::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.graph-week {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.graph-square {
  width: 10px;
  height: 10px;
  border-radius: 0.125rem;
  transition: all 0.2s;
  cursor: pointer;
}

.graph-square:hover {
  transform: scale(1.1);
}

.graph-square.level-0 {
  background: #161b22;
  border: 1px solid #21262d;
}
.graph-square.level-1 {
  background: #0e4429;
}
.graph-square.level-2 {
  background: #006d32;
}
.graph-square.level-3 {
  background: #26a641;
}
.graph-square.level-4 {
  background: #39d353;
}

.graph-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.625rem;
  color: #64748b;
}

.legend-squares {
  display: flex;
  gap: 2px;
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: #1e293b;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  color: #f1f5f9;
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05),
    rgba(168, 85, 247, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: #3b82f6;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #f1f5f9;
  position: relative;
  z-index: 1;
}

.feature-description {
  color: #cbd5e1;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works {
  padding: 4rem 0;
  background: #0f172a;
}

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

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #f1f5f9;
}

.step-description {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Usage Section */
.usage {
  padding: 4rem 0;
  background: #1e293b;
}

.usage-content {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.usage-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
}

.code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  border: 1px solid #334155;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.requirements-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.requirements-list li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Disclaimer Section */
.disclaimer-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.disclaimer-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.disclaimer-icon-large {
  width: 1.5rem;
  height: 1.5rem;
  color: #92400e;
  flex-shrink: 0;
}

.disclaimer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #92400e;
}

.disclaimer-text {
  color: #92400e;
  line-height: 1.6;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #e5e7eb;
  padding: 2rem 0 1rem;
  border-top: 1px solid #1e293b;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #f1f5f9;
}

.footer-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #3b82f6;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #3b82f6;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.875rem;
}

/* Tablet Responsive Design */
@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }

  .nav-container {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .btn {
    width: auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }

  .step {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .footer-links {
    justify-content: flex-end;
  }
}

/* Desktop Responsive Design */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .nav-container {
    height: 5rem;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-title {
    font-size: 3.75rem;
    text-align: left;
  }

  .hero-description {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-disclaimer {
    justify-content: flex-start;
  }

  .section-title {
    font-size: 2.75rem;
  }

  .features {
    padding: 6rem 0;
  }

  .features-grid {
    max-width: 900px;
  }

  .feature-card {
    padding: 2.5rem;
  }

  .how-it-works {
    padding: 6rem 0;
  }

  .steps {
    max-width: 800px;
  }

  .usage {
    padding: 6rem 0;
  }

  .usage-content {
    max-width: 800px;
  }

  .disclaimer-section {
    padding: 4rem 0;
  }

  .disclaimer-card {
    max-width: 800px;
  }

  .footer {
    padding: 3rem 0 1rem;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .nav-link {
    font-size: 1rem;
  }

  .nav-link-primary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .nav-link-icon {
    width: 1rem;
    height: 1rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
  }

  .btn-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .graph-square {
    width: 12px;
    height: 12px;
  }

  .graph-days {
    height: 98px;
  }

  .feature-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .feature-title {
    font-size: 1.375rem;
  }

  .feature-description {
    font-size: 1rem;
  }

  .step-number {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .step-description {
    font-size: 1rem;
  }
}

/* Mobile-specific improvements */
@media (max-width: 767px) {
  .mobile-menu-btn {
    display: flex;
  }

  .desktop-nav {
    display: none;
  }

  .graph-square {
    width: 8px;
    height: 8px;
  }

  .graph-days {
    height: 66px;
    font-size: 0.5rem;
  }

  .graph-months {
    font-size: 0.5rem;
  }

  .graph-weeks {
    gap: 1px;
  }

  .graph-week {
    gap: 1px;
  }

  .graph-legend {
    font-size: 0.5rem;
  }

  .legend-squares {
    gap: 1px;
  }
}

/* Additional modern touches */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.contribution-graph {
  position: relative;
  z-index: 1;
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .graph-square:hover {
    transform: none;
  }

  .feature-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .nav-link-primary:hover {
    transform: none;
  }
}

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

  .hero-visual::before {
    animation: none;
  }

  .hero-highlight {
    animation: none;
  }
}

/* Focus styles for accessibility */
.nav-link:focus,
.mobile-nav-link:focus,
.btn:focus,
.mobile-menu-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .graph-square.level-0 {
    border: 2px solid #ffffff;
  }

  .feature-card {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}
