:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(147, 51, 234, 0.12), transparent 32%),
    var(--bg);
  min-height: 100vh;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.06em;
}

.subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 680px;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  backdrop-filter: blur(10px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.button.primary {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.resume-shell {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.resume-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
}

.window-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d1d5db;
}

.dot:nth-child(1) {
  background: #fb7185;
}

.dot:nth-child(2) {
  background: #fbbf24;
}

.dot:nth-child(3) {
  background: #34d399;
}

.toolbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.pdf-desktop {
  display: block;
}

.pdf-frame {
  width: 100%;
  height: 82vh;
  min-height: 680px;
  border: 0;
  display: block;
  background: #f3f4f6;
}

.pdf-mobile-card {
  display: none;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 24px;
}

/* iPad, tablets and phones */
@media (max-width: 1180px), (hover: none) and (pointer: coarse) {
  .page {
    width: min(100% - 20px, 1120px);
    padding: 28px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .actions {
    justify-content: flex-start;
  }

  .resume-shell {
    border-radius: 20px;
  }

  .resume-toolbar {
    padding: 8px 12px;
  }

  .pdf-desktop {
    display: none !important;
  }

  .pdf-mobile-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 420px;
    padding: 36px 24px;
    text-align: center;

    background:
      radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 42%),
      #ffffff;
  }

  .pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 86px;
    margin-bottom: 18px;

    border-radius: 14px;
    background: var(--primary);
    color: white;

    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
  }

  .pdf-mobile-card h2 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
  }

  .pdf-mobile-card p {
    max-width: 420px;
    margin: 0 0 24px;
    color: var(--muted);
  }

  .mobile-actions {
    display: flex;
    justify-content: center;
  }

  .mobile-actions .button {
    min-width: 220px;
  }
}

/* Small phones */
@media (max-width: 520px) {
  .page {
    width: min(100% - 16px, 1120px);
    padding: 22px 0;
  }

  h1 {
    font-size: clamp(2rem, 14vw, 3rem);
  }

  .subtitle {
    font-size: 1rem;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .actions .button {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.95rem;
  }

  .actions .button.primary {
    grid-column: 1 / -1;
  }

  .resume-toolbar {
    min-height: 36px;
  }

  .toolbar-title {
    font-size: 0.82rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .pdf-mobile-card {
    min-height: 380px;
    padding: 34px 18px;
  }

  .mobile-actions {
    width: 100%;
  }

  .mobile-actions .button {
    min-width: 100%;
  }
}
