/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #030718;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fixed Gradient Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  padding: 36px 40px 16px 40px;
  width: 100%;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.9;
}

.header-logo {
  height: 68px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(6, 214, 250, 0.4));
}

.header-title {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.brand-blurb {
  margin-top: 20px;
  max-width: 760px;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Main Content */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 60px 40px;
}

/* App Grid (4 across on desktop) */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  border: none;
}

/* App Card */
.app-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease,
              background-color 0.25s ease;
}

.app-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(6, 214, 250, 0.15);
}

.icon-link {
  display: block;
  text-decoration: none;
  border-radius: 22px;
  overflow: hidden;
  line-height: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.icon-link:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.app-icon {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.app-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 16px 0 14px 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Store Badges */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}

.badge-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 50%;
  line-height: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
}

.badge-link:hover {
  transform: scale(1.18);
  filter: brightness(1.2);
}

.store-badge {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* Footer */
.site-footer {
  padding: 36px 24px 44px 24px;
  text-align: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 7, 24, 0.4);
  backdrop-filter: blur(8px);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  font-weight: 400;
}

/* Responsive Styles */
@media (max-width: 1100px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
  }
}

@media (max-width: 788px) {
  .desktop-only {
    display: none;
  }

  .site-header {
    padding: 24px 24px 16px 24px;
  }

  .main-content {
    padding: 24px 24px 48px 24px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .header-logo {
    height: 56px;
  }

  .header-title {
    height: 32px;
  }

  .brand-link {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
    max-width: 300px;
    margin: 0 auto;
  }

  .site-header {
    padding: 20px 16px 12px 16px;
  }

  .header-logo {
    height: 46px;
  }

  .header-title {
    height: 26px;
  }

  .brand-link {
    gap: 10px;
  }

  .app-card {
    padding: 24px 16px 20px 16px;
  }
}

/* Contact Page Styles */
.contact-container {
  max-width: 660px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.page-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.925rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  border-color: #06d6fa;
  box-shadow: 0 0 14px rgba(6, 214, 250, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.submit-btn {
  background: linear-gradient(135deg, #06d6fa 0%, #0072ff 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 214, 250, 0.35);
}

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

.submit-icon {
  transition: transform 0.2s ease;
}

.submit-btn:hover .submit-icon {
  transform: translateX(3px) translateY(-1px);
}

.form-status {
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.form-status.success {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.35);
  color: #2ed573;
}

.form-status.error {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #ff4757;
}

@media (max-width: 600px) {
  .contact-form {
    padding: 28px 20px;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

/* Legal / Terms of Service Page Styles */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 36px;
}

.effective-date {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  line-height: 1.7;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-section p {
  font-size: 0.975rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin-left: 24px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.975rem;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: #06d6fa;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.legal-section a:hover {
  opacity: 0.85;
}

.app-terms-notice {
  background: rgba(6, 214, 250, 0.08);
  border: 1px solid rgba(6, 214, 250, 0.25);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 36px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.app-terms-notice-icon {
  color: #06d6fa;
  flex-shrink: 0;
  margin-top: 2px;
}

.app-terms-notice p {
  font-size: 0.975rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .legal-card {
    padding: 28px 20px;
  }
  
  .app-terms-notice {
    padding: 16px 18px;
    gap: 10px;
  }
}


