/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --bg: #19181C;
  --card-bg: #232029;
  --card-border: #363240;
  --text: #F5F5F5;
  --muted: #CED9E0;
  --blue: #336DDE;
  --blue-bright: #3D7BF5;
  --purple: #7000FF;
  --pink: #DE3366;
  --orange: #E68047;
  --dark-blue: #102E4C;
  --grad-purple: linear-gradient(45deg, #7000FF 0%, rgba(51, 109, 222, 0.008) 100%);
  --grad-orange: linear-gradient(45deg, #E68047 0%, rgba(222, 51, 102, 0.008) 100%);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: 'Archivo', sans-serif;
}

a {
  color: var(--blue-bright);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section {
  padding: 80px 0;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flex-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */

.section-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: 'Archivo', sans-serif;
}

.section-body {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}

.caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
}

/* ==========================================================================
   Decorative elements
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  background: var(--card-bg);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(112, 0, 255, 0.15);
  border: 1px solid rgba(112, 0, 255, 0.4);
  font-size: 12px;
  color: #a855f7;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--grad-purple);
  border-radius: 2px;
  margin: 0 0 32px;
}

.divider-center {
  margin: 0 auto 32px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: inherit;
}

.btn-primary {
  background: var(--blue-bright);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--blue-bright);
  color: var(--text);
}

.btn-ghost {
  background: rgba(61, 123, 245, 0.12);
  color: var(--blue-bright);
}

/* ==========================================================================
   Cards
   ========================================================================== */

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

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

/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 24, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

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

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

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--card-border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

#hero {
  padding: 100px 0 80px;
  text-align: center;
}

#hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 100;
  font-family: 'Archivo', sans-serif;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

#hero h1 strong {
  font-weight: 700;
}

.hero-body {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-paths {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

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

/* ==========================================================================
   Team
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.team-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
}

.team-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 10px;
  font-weight: 500;
}

.team-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.definition-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.definition-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.definition-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

.definition-card p strong {
  font-style: normal;
  color: var(--text);
}

/* ==========================================================================
   App cards
   ========================================================================== */

.app-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

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

.app-card-inner {
  padding: 28px;
}

.app-card-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.app-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.app-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.app-screenshot {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  margin: 20px 0;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-pills {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.pricing-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
  min-width: 200px;
}

.pricing-pill .price {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Archivo', sans-serif;
  color: var(--blue-bright);
  margin-bottom: 6px;
}

.pricing-pill .price-unit {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-pill .desc {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   Social links
   ========================================================================== */

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover {
  border-color: var(--blue-bright);
  color: var(--text);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   EmailOctopus inline forms
   ========================================================================== */

.emailoctopus-form.eo-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.emailoctopus-form.eo-inline input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.emailoctopus-form.eo-inline input[type="email"]::placeholder {
  color: var(--muted);
}

.emailoctopus-form.eo-inline input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
}

.emailoctopus-form p[data-message] {
  margin-top: 10px;
  font-size: 14px;
  color: var(--blue-bright);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

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

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.2s;
}

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

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* ==========================================================================
   Section utilities
   ========================================================================== */

.section-coming-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.section-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-block {
  margin-top: 32px;
}

/* ==========================================================================
   Portfolio section
   ========================================================================== */

.portfolio-image-wrap {
  margin-top: 40px;
}

.portfolio-image-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.portfolio-cta {
  margin-top: 32px;
}

/* ==========================================================================
   Team section
   ========================================================================== */

.team-card-links {
  margin-top: 16px;
}

.newsletter-block {
  margin-top: 64px;
}

.newsletter-heading {
  font-family: 'Archivo', sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
}

/* ==========================================================================
   Apps section
   ========================================================================== */

.apps-collage {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.apps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.app-screenshots-pair {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.app-screenshots-pair img {
  flex: 1;
  min-width: 200px;
  height: 220px;
  object-fit: cover;
}

.app-card-actions {
  margin-top: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

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

  #hero {
    padding: 60px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .pricing-pills {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-paths {
    flex-direction: column;
    align-items: center;
  }
}
