/* Geogram Website - LensVM-inspired Design */

:root {
  --primary: #f5a623;
  --primary-dark: #d4920f;
  --bg-dark: #000000;
  --bg-card: rgba(20, 20, 20, 0.6);
  --bg-card-hover: rgba(30, 30, 30, 0.8);
  --text-primary: #ffffff;
  --text-muted: #a0a0a0;
  --text-highlight: #f5a623;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(245, 166, 35, 0.3);
  --gradient-primary: linear-gradient(135deg, #f5a623 0%, #ff6b35 100%);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Orange tint filter for feature images */
.feature-image {
  filter: sepia(30%) saturate(120%) hue-rotate(-10deg) brightness(0.95);
  transition: filter 0.3s ease;
}

.feature-image:hover {
  filter: sepia(10%) saturate(110%) hue-rotate(-5deg) brightness(1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;  /* iOS momentum scrolling */
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  touch-action: manipulation;  /* Removes 300ms tap delay, improves scroll */
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

p, h1, h2, h3, h4, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

section {
  padding: 6rem 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo img {
  height: 40px;
  width: auto;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-cta {
  padding: 0.6rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--bg-dark) !important;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.9;
  color: var(--bg-dark) !important;
}

/* Language selector */
.lang-selector {
  position: relative;
  margin-left: 1rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.lang-arrow {
  font-size: 0.7rem;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  min-width: 120px;
  z-index: 1001;
}

.lang-dropdown.active {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.lang-dropdown a:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem;
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
  }

  .lang-selector {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
  background-size: contain;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  max-width: none;
  margin: 0;
  padding-left: 5vw;
  padding-right: 0;
}

.hero-content-centered {
  position: relative;
  z-index: 1;
  max-width: 550px;
}

.hero-content-centered h1 {
  margin-bottom: 1.5rem;
}

.hero-content-centered h1 .highlight {
  color: var(--primary);
}

.hero-content-centered .subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(245, 166, 35, 0.3);
  color: var(--bg-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

/* Feature Sections */
.feature-section {
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-grid.reverse {
  direction: rtl;
}

.feature-grid.reverse > * {
  direction: ltr;
}

.feature-content {
  padding: 2rem 0;
}

.feature-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--border-accent);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-content h2 {
  margin-bottom: 1.5rem;
}

.feature-content p {
  margin-bottom: 1.5rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: bold;
}

.feature-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual .icon-large {
  font-size: 8rem;
  opacity: 0.3;
}

/* Apps Grid */
.apps-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 20, 20, 1) 100%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

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

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.app-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-5px);
}

.app-card-icon {
  width: 48px;
  height: 48px;
  background: var(--border-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.app-card-icon svg {
  width: 24px;
  height: 24px;
}

.app-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.app-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.app-card.upcoming {
  opacity: 0.6;
  border-style: dashed;
}

.app-card.upcoming::after {
  content: 'Coming Soon';
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Under the Hood / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-block {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-block:hover {
  border-color: var(--border-accent);
}

.feature-block-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--border-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-block-icon svg {
  width: 32px;
  height: 32px;
}

.feature-block h3 {
  margin-bottom: 0.75rem;
}

.feature-block p {
  font-size: 0.95rem;
}

/* Platforms Section */
.platforms-section {
  background: linear-gradient(180deg, rgba(20, 20, 20, 1) 0%, var(--bg-dark) 100%);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.platform-card:hover {
  border-color: var(--border-accent);
}

.platform-card .icon {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
}

.platform-card .icon svg {
  width: 40px;
  height: 40px;
}

.platform-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.platform-card .status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.platform-card .status.stable {
  color: #4ade80;
}

/* Downloads Section */
.downloads-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 20, 20, 1) 100%);
}

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

@media (max-width: 1100px) {
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .downloads-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.download-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-5px);
}

.download-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.download-icon svg {
  width: 48px;
  height: 48px;
}

.download-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.download-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  min-height: 3rem;
}

.download-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-meta span {
  display: inline-block;
}

.downloads-fallback {
  text-align: center;
  padding-top: 1rem;
}

.downloads-fallback p {
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 8rem 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
}

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  html {
    scroll-behavior: auto;  /* Disable smooth scroll on mobile for better touch response */
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .feature-grid.reverse {
    direction: ltr;
  }

  .hero {
    background-position: center center;
    background-size: cover;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 100%);
  }

  .hero .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-content-centered {
    max-width: 100%;
  }

  section {
    padding: 4rem 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

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

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .app-card, .feature-block, .download-card {
    padding: 1.5rem;
  }
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
