:root {
  --navy: #0d2138;
  --navy-light: #14304f;
  --orange: #f4791f;
  --white: #ffffff;
  --grey: #a9b8c9;
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--navy);
  background-image: url("img/Background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 80px 16px 48px;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(13, 33, 56, 0.2), rgba(8, 20, 34, 0.85) 70%);
  z-index: 0;
}

.top-actions {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 48, 79, 0.85);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: #1a3a5c;
}

.subscribe-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.subscribe-btn:hover,
.subscribe-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.share-toast {
  position: fixed;
  top: 64px;
  right: 16px;
  z-index: 25;
  max-width: min(320px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.share-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
}

.avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-light);
  border: 3px solid var(--orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
  flex-shrink: 0;
}

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

.logo {
  width: 220px;
  max-width: 70%;
  height: auto;
  margin-bottom: 18px;
}

.tagline {
  color: var(--grey);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-3px);
  border-color: var(--orange);
  background: #1a3a5c;
}

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

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  flex-shrink: 0;
}

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

.app-icon img.zoom-icon {
  transform: scale(1.35);
}

.icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.label {
  flex: 1;
  text-align: left;
}

.footer {
  margin-top: 40px;
  color: var(--grey);
  font-size: 0.8rem;
  text-align: center;
}

.footer .made-by {
  margin-top: 4px;
  font-size: 0.65rem;
  opacity: 0.6;
}

.footer .made-by a {
  color: inherit;
  text-decoration: none;
}

.footer .made-by:hover {
  opacity: 1;
}

@media (max-width: 380px) {
  .link-btn {
    padding: 14px 16px;
    font-size: 0.92rem;
  }
}

/* Newsletter modal */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: 76px;
  overflow-y: auto;
  background: rgba(6, 15, 26, 0.75);
  backdrop-filter: blur(3px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--navy-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--white);
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--white);
}

.modal-text {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

.modal-podcast {
  max-width: 460px;
}

.podcast-list {
  width: 100%;
  max-height: 55vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-right: 4px;
  text-align: left;
}

.podcast-status {
  color: var(--grey);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px 0;
}

.podcast-episode {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.podcast-episode-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.podcast-episode-date {
  font-size: 0.72rem;
  color: var(--grey);
  margin-bottom: 8px;
}

.podcast-episode audio {
  width: 100%;
  height: 34px;
}

.modal-link {
  display: inline-block;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.modal-link:hover,
.modal-link:focus-visible {
  text-decoration: underline;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-form[hidden] {
  display: none;
}

.newsletter-form input[type="email"] {
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--grey);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
}

.submit-btn {
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  filter: brightness(1.08);
}

.modal-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--grey);
}

.newsletter-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
  text-align: center;
  animation: newsletter-success-in 0.25s ease;
}

.newsletter-success[hidden] {
  display: none;
}

.newsletter-success-icon {
  color: var(--orange);
  flex-shrink: 0;
}

.newsletter-success-text {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
}

@keyframes newsletter-success-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
