:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #ff7a59;
  --accent-soft: rgba(255, 122, 89, 0.15);
  --text: #f5f5f5;
  --text-muted: #a3a8c3;
  --card-bg: #11182b;
  --border-subtle: #232b43;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.4);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #151c3b, #050816);
  color: var(--text);
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top right, #181f3a 0, #050816 45%);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    90deg,
    rgba(5, 8, 22, 0.94),
    rgba(5, 8, 22, 0.75),
    rgba(5, 8, 22, 0.94)
  );
  border-bottom: 1px solid rgba(99, 110, 164, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.88rem;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 168, 195, 0.4);
  background: radial-gradient(circle at top left, rgba(255, 122, 89, 0.15), transparent);
}

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

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  position: relative;
  padding-bottom: 0.1rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #ffd66b);
  border-radius: 999px;
  transition: width 0.2s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(163, 168, 195, 0.4);
  border-radius: 999px;
  color: var(--text);
  padding: 0.3rem 0.65rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 89, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(92, 145, 255, 0.24), transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  background-image: linear-gradient(120deg, #ffb36b, #ff7a59, #ffd66b);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 34rem;
}

.hero-text p + p {
  margin-top: 0.55rem;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-photo {
  width: 100%;
  max-width: 360px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, #ff7a59, #ffb36b);
  color: #1a1420;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(255, 122, 89, 0.45);
}

.btn-secondary {
  background: rgba(10, 17, 45, 0.85);
  color: var(--text);
  border-color: rgba(163, 168, 195, 0.4);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-quote {
  margin-top: 1.8rem;
  padding: 1rem 1.2rem;
  max-width: 30rem;
  border-radius: var(--radius-xl);
  background: rgba(8, 11, 40, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
}

.quote-text {
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
}

.quote-author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quote-note {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Hero image */

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-photo-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  border: 1px dashed rgba(215, 220, 255, 0.4);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(circle at bottom, rgba(92, 145, 255, 0.18), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}

.hero-photo-placeholder span {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.hero-photo-placeholder small {
  font-size: 0.8rem;
}

/* Section header */

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.section-header {
  max-width: 40rem;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Cards (Mission) */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

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

/* Story */

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.story-highlight {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.story-highlight h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.story-highlight ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.story-highlight li + li {
  margin-top: 0.45rem;
}

/* Apps */

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

.app-card {
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 60%),
    var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.app-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.app-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.app-badges {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-badge {
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(192, 197, 230, 0.5);
  text-decoration: none;
  color: var(--text);
  background: rgba(16, 20, 46, 0.95);
}

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

.apps-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.3rem;
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.8rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 10px;
  border: 1px solid rgba(163, 168, 195, 0.5);
  padding: 0.55rem 0.7rem;
  background: rgba(3, 6, 24, 0.95);
  color: var(--text);
  font-size: 0.9rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--accent);
}

.contact-info {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(67, 77, 130, 0.6);
  padding: 1.2rem 0 1.6rem;
  background: #050816;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Responsive */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.25fr);
  }
  .hero-image {
    order: -1;
    margin-bottom: 1.5rem;
  }
  .hero {
    padding-top: 5.2rem;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .apps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 54px;
    padding: 0.7rem 1.5rem 0.9rem;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(5, 8, 22, 0.98);
    border-bottom: 1px solid rgba(99, 110, 164, 0.5);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav.nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }
}
