:root {
  --bg: #0f0a06;
  --bg-alt: #1a120c;
  --surface: #241a12;
  --border: #3d2e1f;
  --text: #f5e6d3;
  --text-muted: #b89a7a;
  --accent: #e67e22;
  --accent-hover: #f39c12;
  --accent-soft: rgba(230, 126, 34, 0.18);
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 126, 34, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 126, 34, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(15, 10, 6, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  gap: 24px;
}

.logo {
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.accent {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Language switch */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.lang-btn.active {
  background: var(--accent);
  color: #0f0a06;
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 120px;
  text-align: center;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.3) contrast(1.15) sepia(0.25);
}

.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(15, 10, 6, 0.25) 0%,
    rgba(15, 10, 6, 0.7) 50%,
    rgba(15, 10, 6, 0.95) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff5e6 0%, #e67e22 55%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.8));
}

.hero-desc {
  font-size: 1.15rem;
  color: #d4b896;
  max-width: 560px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0f0a06;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: var(--accent);
  background: #2e2218;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

/* About */
.about-grid {
  display: grid;
  gap: 20px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-card a {
  color: var(--accent);
  text-decoration: none;
}

.about-card a:hover {
  text-decoration: underline;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

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

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Download */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.download-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.download-note {
  margin-top: 28px !important;
  margin-bottom: 0 !important;
  font-size: 0.9rem;
}

.download-note a {
  color: var(--accent);
}

/* Links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.link-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.link-card strong {
  display: block;
  font-size: 1rem;
}

.link-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-sub {
  margin-top: 8px;
  font-size: 0.85rem !important;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.dev-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}

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

.dev-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.dev-avatar-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}

.dev-info h3 {
  font-size: 1.15rem;
}

.dev-role {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 2px 0 10px;
}

.dev-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.dev-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.dev-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s;
}

.dev-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 1000px) {
  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .header-right {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .header-right {
    gap: 0;
  }

  .hero {
    padding: 100px 0 80px;
    min-height: 420px;
  }

  .section {
    padding: 60px 0;
  }
}