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

:root {
  --bryj-blue: #1a1f71;
  --bryj-blue-light: #2a3091;
  --bryj-blue-dark: #0f1450;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --bg-gradient-start: #0a0e3d;
  --bg-gradient-end: #1a1f71;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  padding: 20px;
}

.container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.logo-container {
  margin-bottom: 40px;
  animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

.logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.3;
}

.message {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.message code {
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 16px;
  color: var(--text-primary);
}

.app-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.app-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.app-link:active {
  transform: translateY(0);
}

.icon {
  font-size: 24px;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .content {
    padding: 30px 20px;
  }

  h1 {
    font-size: 24px;
  }

  .message {
    font-size: 16px;
  }

  .logo {
    width: 100px;
  }
}

/* Desktop specific styles */
@media (min-width: 768px) {
  .app-links {
    flex-direction: row;
    justify-content: center;
  }
}

/* URL Form Styles */
.url-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
  animation: fadeIn 0.4s ease-in-out;
}

.url-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.url-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.url-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.submit-button {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.submit-button:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
  transform: translateY(0);
}

.message.small {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.deep-link-display {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  word-break: break-all;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.deep-link-display code {
  color: var(--text-secondary);
  font-size: 14px;
  font-family: 'Monaco', 'Courier New', monospace;
}

@media (min-width: 768px) {
  .url-form {
    flex-direction: row;
    align-items: stretch;
  }

  .url-input {
    flex: 1;
  }

  .submit-button {
    flex-shrink: 0;
  }
}

/* Store Badge Styles */
.store-badges {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 30px;
}

.store-badges a {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-badges a:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}

.store-badge {
  height: 50px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .store-badges {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .store-badge {
    height: 60px;
  }
}