@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #080705;
  --bg-soft: #14110d;
  --card: rgba(18, 14, 10, 0.88);
  --card-border: rgba(255, 166, 38, 0.33);
  --text: #fffdf8;
  --text-soft: #d8c5a7;
  --accent: #ffa31f;
  --accent-2: #ff7f11;
  --success: #ffbf52;
  --radius: 20px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% -10%, rgba(255, 163, 31, 0.18), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(255, 127, 17, 0.12), transparent 30%),
    linear-gradient(180deg, #0b0907 0%, #090806 48%, #080705 100%);
  min-height: 100vh;
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 163, 31, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 163, 31, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 86%);
  z-index: -1;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 163, 31, 0.22);
  background: rgba(8, 7, 5, 0.82);
  backdrop-filter: blur(14px);
}

.site-header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  gap: 1rem;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: min(48vw, 460px);
  border-radius: 10px;
  border: 1px solid rgba(255, 163, 31, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.nav a:hover {
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 163, 31, 0.35);
  background: rgba(17, 12, 8, 0.9);
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
  padding: 0.38rem 0.62rem;
  cursor: pointer;
}

.lang-switch button:hover {
  color: #fff;
}

.lang-switch button.is-active {
  background: linear-gradient(135deg, #ffb648, #ff8b0f);
  color: #1a1007;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: rgba(25, 18, 11, 0.86);
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 0 rgba(255, 163, 31, 0.45);
  animation: ping 2.6s infinite;
}

@keyframes ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 163, 31, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(255, 163, 31, 0); }
}

h1,
h2,
h3 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.08;
  max-width: 14ch;
}

.hero p {
  margin-top: 1.2rem;
  max-width: 56ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.btn-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border: 1px solid transparent;
  text-decoration: none;
  border-radius: 14px;
  padding: 0.7rem 1.05rem;
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, #ffb648, #ff8b0f);
  color: #120c05;
  box-shadow: 0 8px 26px rgba(255, 145, 17, 0.35);
}

.btn.secondary {
  border-color: var(--card-border);
  background: rgba(18, 14, 9, 0.86);
  color: var(--text);
}

main section {
  padding: 2.2rem 0 3.5rem;
}

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.section-subtitle {
  margin-top: 0;
  color: var(--text-soft);
  max-width: 70ch;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: 1.1rem;
}

.app-icon {
  border-radius: 25px;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border: 1px solid rgba(255, 180, 92, 0.33);
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 163, 31, 0.35);
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  font-size: 0.74rem;
  color: #ffe7c2;
}

.tag.ok::before,
.tag.soon::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.tag.ok::before {
  background: var(--success);
}

.tag.soon::before {
  background: var(--accent-2);
}

.app-card h3 {
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.app-card p {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
}

.feature-list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.feature-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: #fff3df;
  font-size: 0.92rem;
}

.feature-list li::before {
  content: '';
  margin-top: 0.42rem;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
}

.card-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gallery {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 163, 31, 0.3);
  background: rgba(18, 13, 8, 0.84);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.stat {
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(18, 13, 8, 0.8);
  border: 1px solid rgba(255, 163, 31, 0.3);
}

.stat strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

.stat span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

.contact-card {
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.contact-copy .feature-list {
  margin-top: 0.5rem;
}

.contact-form {
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 163, 31, 0.28);
  background: rgba(17, 12, 8, 0.88);
  display: grid;
  gap: 0.75rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  color: #ffe7c2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 163, 31, 0.24);
  background: rgba(11, 8, 5, 0.9);
  color: #fffdf8;
  font: inherit;
  padding: 0.7rem 0.76rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(216, 197, 167, 0.7);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 182, 72, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 163, 31, 0.22);
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-actions {
  display: grid;
  gap: 0.5rem;
}

.contact-status {
  margin: 0;
  min-height: 1.35rem;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.contact-status.is-pending {
  color: #ffddaa;
}

.contact-status.is-success {
  color: #ffd889;
}

.contact-status.is-error {
  color: #ffc6a3;
}

[data-contact-submit][disabled] {
  opacity: 0.75;
  cursor: wait;
}

.policy-block {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 163, 31, 0.3);
  background: rgba(19, 14, 9, 0.85);
}

.policy-block h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
}

.policy-block p,
.policy-block li {
  color: var(--text-soft);
}

.site-footer {
  border-top: 1px solid rgba(255, 163, 31, 0.25);
  padding: 2rem 0 2.3rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.55s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-delay-2 { animation-delay: 0.16s; }
.reveal-delay-3 { animation-delay: 0.24s; }
.reveal-delay-4 { animation-delay: 0.32s; }

@media (min-width: 980px) {
  .contact-card {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
  }
}

@media (max-width: 1024px) {
  .apps-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-header .inner {
    min-height: 78px;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .brand-logo {
    height: 42px;
    max-width: 72vw;
  }

  .hero {
    padding-top: 4.2rem;
  }

  .app-card {
    grid-template-columns: 1fr;
  }

  .app-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

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

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

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