:root {
  --primary-color: #0055d4;
  --primary-gradient: linear-gradient(to bottom, #0080ff, #001f5c);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: white;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 14px;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

header {
  padding: 12px 0;
  min-height: 30px;
}

.logo {
  height: 20px;
}

.hero {
  display: block;
  padding: 30px 0 50px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 24px;
}

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

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-gif {
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  box-shadow: 0 15px 30px var(--shadow-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  font-weight: 800;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  color: #555;
}

.app-icon-container {
  display: inline-block;
  background: transparent;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.2));
}

.app-icon {
  width: 160px;
  height: 160px;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
  margin-bottom: 0;
}

.btn, .installation-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  margin: 10px;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 5px 15px var(--shadow-color);
  min-width: 140px;
  height: 42px;
  box-sizing: border-box;
  cursor: pointer;
}

.btn:hover, .installation-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

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

.btn-secondary, .installation-toggle {
  position: relative;
  background: white;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: var(--primary-gradient);
  z-index: 1;
  border: none;
}

.btn-secondary::before, .installation-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  padding: 2px;
  background: var(--primary-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.installation-toggle {
  position: relative;
}

.installation-toggle i {
  position: absolute;
  right: 20px;
  margin-left: 0;
  font-size: 0.9em;
  transition: transform 0.3s;
}

.installation-toggle.active i {
  transform: rotate(180deg);
}

.features {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 18px;
  color: var(--primary-color);
}

.screenshot {
  max-width: 80%;
  width: 700px;
  border-radius: 10px;
  box-shadow: 0 15px 30px var(--shadow-color);
  margin: 40px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

footer {
  padding: 20px;
  text-align: center;
  color: #777;
  margin-top: auto;
}

.footer-link {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s;
}

.footer-link:hover {
  color: #0080ff;
}

.footer-link .fa-coffee {
  margin-right: 3px;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
  }
  .hero-left {
    text-align: center;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 10px;
  }
  .download-buttons {
    justify-content: center;
  }
}

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  height: 60px;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-logo {
  font-size: 18px;
  font-weight: bold;
  color: #222;
}

.sticky-actions {
  margin-left: auto;
}

.sticky-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 8px var(--shadow-color);
}

.sticky-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px var(--shadow-color);
}

.sticky-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Ensure the first button aligns flush with the text when left-aligned */
.download-buttons > * {
  margin: 0;
}

/* Installation Guide */
.installation-guide {
  max-width: 700px;
  margin: 20px auto 0;
  text-align: left;
}

.installation-content {
  background: white;
  border-radius: 10px;
  padding: 0;
  margin-top: 0;
  box-shadow: 0 5px 15px var(--shadow-color);
  max-height: 0;
  overflow: hidden;
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.installation-content.active {
  transform: scaleY(1);
  max-height: none;
  opacity: 1;
  padding: 25px;
  margin-top: 15px;
}

/* Add wrapper for text content */
.installation-content-inner {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.installation-content.active .installation-content-inner {
  opacity: 1;
  transform: translateY(0);
}

.installation-content-inner p {
  margin-bottom: 20px;
}

.installation-content h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.installation-content ol {
  padding-left: 25px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.installation-content li {
  margin-bottom: 10px;
}

.security-plain-note {
  color: #666;
  font-style: italic;
  margin: 15px 0;
}

.installation-image {
  margin: 20px 0 10px;
  text-align: center;
}

.security-screenshot {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
}

/* GitHub button spacing */
.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.github-btn .fab {
  font-size: 1.1em;
  color: transparent;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.github-btn .star-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 2px;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9em;
}

.github-btn .star-count span {
  transform: translateY(0.5px);
  color: transparent;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.github-btn .star-count .fas {
  font-size: 0.85em;
  line-height: 1;
  transform: translateY(0.5px);
  color: transparent;
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
} 